{"id":21316594,"url":"https://github.com/madnight/ndjson-to-json","last_synced_at":"2025-07-12T02:32:26.915Z","repository":{"id":53170820,"uuid":"78886642","full_name":"madnight/ndjson-to-json","owner":"madnight","description":"Converts NDJSON to JSON","archived":false,"fork":false,"pushed_at":"2021-04-02T18:44:26.000Z","size":13,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-14T02:06:52.126Z","etag":null,"topics":["convert","json","ndjson","nodejs","npm-package"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madnight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-13T21:07:15.000Z","updated_at":"2024-04-02T08:54:29.000Z","dependencies_parsed_at":"2022-09-09T18:11:49.025Z","dependency_job_id":null,"html_url":"https://github.com/madnight/ndjson-to-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madnight%2Fndjson-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madnight%2Fndjson-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madnight%2Fndjson-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madnight%2Fndjson-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madnight","download_url":"https://codeload.github.com/madnight/ndjson-to-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225786632,"owners_count":17524048,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert","json","ndjson","nodejs","npm-package"],"created_at":"2024-11-21T18:39:58.471Z","updated_at":"2024-11-21T18:39:59.125Z","avatar_url":"https://github.com/madnight.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndjson-to-json\nConverts NDJSON to JSON\n\nThe opposite of the package [json-to-ndjson](https://www.npmjs.com/package/json-to-ndjson)\n\nNDJSON stands for Newline delimited JSON and is a convenient format for storing or \nstreaming structured data that may be processed one record at a time. \nIt works well with unix-style text processing tools and shell pipelines. \nIt's a great format for log files. It's also a flexible format \nfor passing messages between cooperating processes.\nIts also the download format that is used in Google Big Query.\n\nhttp://ndjson.org\n\n# Installation\n`npm install -g ndjson-to-json`\n\n# Usage\nPrint json to stdout: `ndjson-to-json ndjson-file.json`\n\nOutput json to a new file: `ndjson-to-json ndjson-input.json -o output.json`\n\nUse with npx without install: `npx ndjson-to-json file.json`\n\n# Example\nGithub Licenses downloaded from Google BigQuery in NDJSON format\n```JavaScript\n{\"license\":\"mit\",\"count\":\"1551711\"}\n{\"license\":\"apache-2.0\",\"count\":\"455316\"}\n{\"license\":\"gpl-2.0\",\"count\":\"376453\"}\n{\"license\":\"gpl-3.0\",\"count\":\"284761\"}\n{\"license\":\"bsd-3-clause\",\"count\":\"161041\"}\n{\"license\":\"bsd-2-clause\",\"count\":\"57412\"}\n{\"license\":\"unlicense\",\"count\":\"43899\"}\n{\"license\":\"lgpl-3.0\",\"count\":\"38213\"}\n{\"license\":\"agpl-3.0\",\"count\":\"38034\"}\n{\"license\":\"cc0-1.0\",\"count\":\"28600\"}\n{\"license\":\"epl-1.0\",\"count\":\"24074\"}\n{\"license\":\"lgpl-2.1\",\"count\":\"23872\"}\n{\"license\":\"isc\",\"count\":\"17690\"}\n{\"license\":\"mpl-2.0\",\"count\":\"17421\"}\n{\"license\":\"artistic-2.0\",\"count\":\"9413\"}\n```\n\nGithub Licenses after converstion with ndjson-to-json to JSON\n```JavaScript\n[{\"license\":\"mit\",\"count\":\"1551711\"},{\"license\":\"apache-2.0\",\"count\":\"455316\"},{\"license\":\"gpl-2.0\",\"count\":\"376453\"},{\"license\":\"gpl-3.0\",\"count\":\"284761\"},{\"license\":\"bsd-3-clause\",\"count\":\"161041\"},{\"license\":\"bsd-2-clause\",\"count\":\"57412\"},{\"license\":\"unlicense\",\"count\":\"43899\"},{\"license\":\"lgpl-3.0\",\"count\":\"38213\"},{\"license\":\"agpl-3.0\",\"count\":\"38034\"},{\"license\":\"cc0-1.0\",\"count\":\"28600\"},{\"license\":\"epl-1.0\",\"count\":\"24074\"},{\"license\":\"lgpl-2.1\",\"count\":\"23872\"},{\"license\":\"isc\",\"count\":\"17690\"},{\"license\":\"mpl-2.0\",\"count\":\"17421\"},{\"license\":\"artistic-2.0\",\"count\":\"9413\"}]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadnight%2Fndjson-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadnight%2Fndjson-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadnight%2Fndjson-to-json/lists"}