{"id":25883151,"url":"https://github.com/maxlath/ndjson-2-json","last_synced_at":"2025-03-02T16:31:45.573Z","repository":{"id":57309390,"uuid":"234564269","full_name":"maxlath/ndjson-2-json","owner":"maxlath","description":"minimal CLI converter from newline-delimited JSON to a JSON array","archived":false,"fork":false,"pushed_at":"2024-07-17T16:19:42.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T16:39:22.706Z","etag":null,"topics":["cli","converter","json","jsonl","ndjson"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maxlath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-17T14:24:44.000Z","updated_at":"2024-07-17T16:19:45.000Z","dependencies_parsed_at":"2022-09-09T20:02:23.690Z","dependency_job_id":null,"html_url":"https://github.com/maxlath/ndjson-2-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/maxlath%2Fndjson-2-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fndjson-2-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fndjson-2-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxlath%2Fndjson-2-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxlath","download_url":"https://codeload.github.com/maxlath/ndjson-2-json/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241537376,"owners_count":19978521,"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":["cli","converter","json","jsonl","ndjson"],"created_at":"2025-03-02T16:31:44.999Z","updated_at":"2025-03-02T16:31:45.555Z","avatar_url":"https://github.com/maxlath.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ndjson-2-json\n\nMinimal CLI converter from [newline-delimited JSON](https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON) to a [JSON](https://en.wikipedia.org/wiki/JSON) array\n\nFeatures:\n* converts NDJSON to JSON\n* uses streams to be able to handle very large files with minimal memory use\n* zero validation: you have the responsability to send some proper newline-delimited JSON on `ndjson-2-json` [stdin](https://en.wikipedia.org/wiki/Standard_streams#Standard_input_(stdin))\n\n## Install\n```sh\nnpm i -g ndjson-2-json\n```\n\n## How to\n\n```sh\n# Convert all a file\ncat some.ndjson | ndjson-2-json \u003e some.json\n# which can also be written\nndjson-2-json \u003c some.ndjson \u003e some.json\n\n# Convert just the 20 first lines\nhead -n 20 some.ndjson | ndjson-2-json \u003e 20_first_entries.json\n```\n\n## See also\n* [ndjson-apply](https://github.com/maxlath/ndjson-apply)\n* [ndjson-cli](https://github.com/mbostock/ndjson-cli)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Fndjson-2-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxlath%2Fndjson-2-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxlath%2Fndjson-2-json/lists"}