{"id":15774430,"url":"https://github.com/mikaello/re-ndjson","last_synced_at":"2025-03-31T14:23:15.009Z","repository":{"id":73862702,"uuid":"190778210","full_name":"mikaello/re-ndjson","owner":"mikaello","description":"Convert to and from NDJSON","archived":false,"fork":false,"pushed_at":"2019-08-01T08:41:21.000Z","size":109,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-04T16:22:04.086Z","etag":null,"topics":["cli","converter","ndjson","reasonml"],"latest_commit_sha":null,"homepage":"http://ndjson.org/","language":"OCaml","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/mikaello.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-07T16:46:21.000Z","updated_at":"2023-02-15T23:19:35.000Z","dependencies_parsed_at":"2023-02-25T13:46:12.636Z","dependency_job_id":null,"html_url":"https://github.com/mikaello/re-ndjson","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Fre-ndjson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Fre-ndjson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Fre-ndjson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikaello%2Fre-ndjson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikaello","download_url":"https://codeload.github.com/mikaello/re-ndjson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246481066,"owners_count":20784470,"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","ndjson","reasonml"],"created_at":"2024-10-04T16:21:44.709Z","updated_at":"2025-03-31T14:23:14.989Z","avatar_url":"https://github.com/mikaello.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# re-ndjson\n\n[![Build Status](https://dev.azure.com/mikaeo/re-ndjson/_apis/build/status/mikaello.re-ndjson?branchName=master)](https://dev.azure.com/mikaeo/re-ndjson/_build/latest?definitionId=1\u0026branchName=master)\n\nConvert to and from [NDJSON](https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON)/JSON. If no option is given, the tool will infer what type of input it got and convert to the other.\n\n## Usage\n\nDownload the OSX binary from the [release page](https://github.com/mikaello/re-ndjson/releases) or build the binary as described in the _Build_-section.\n\n`ndjson --help`:\n\n```\nndjson(1)                        Ndjson Manual                       ndjson(1)\n\n\n\nNAME\n       ndjson - convert to/from NDJSON to/from JSON\n\nSYNOPSIS\n       ndjson [OPTION]... FILE\n\nDESCRIPTION\n       ndjson convert FILE to JSON if it is in NDJSON format, if  FILE is in\n       JSON format it will be converted to NDJSON. The result is printed to\n       standard output.\n\nARGUMENTS\n       FILE (required)\n           FILE must either be a file on your computer, or it must be '-' to\n           take input from stdin\n\nOPTIONS\n       --help[=FMT] (default=auto)\n           Show this help in format FMT. The value FMT must be one of `auto',\n           `pager', `groff' or `plain'. With `auto', the format is `pager` or\n           `plain' whenever the TERM env var is `dumb' or undefined.\n\n       -j, --from-json\n           Convert from JSON file\n\n       -n, --from-ndjson\n           Convert from NDJSON file\n\n       --version\n           Show version information.\n\nEXIT STATUS\n       ndjson exits with the following status:\n\n       0   on success.\n\n       124 on command line parsing errors.\n\n       125 on unexpected internal errors (bugs).\n\nBUGS\n       Open issue in  https://github.com/mikaello/re-ndjson/issues.\n\nSEE ALSO\n        https://github.com/madnight/ndjson-to-json and\n       https://github.com/nypl-spacetime/json-to-ndjson\n\n\n\nNdjson 1.0.0                                                         ndjson(1)\n```\n\n## Build\n\nIf you want to build this program yourself, you need to have [_esy_](https://esy.sh/) installed and follow these instructions:\n\n```\n$ git clone https://github.com/mikaello/re-ndjson\n$ cd re-ndjson\n$ esy install\n$ esy build\n```\n\nAnd make `_esy/default/store/b/re_ndjson-\u003chash\u003e/default/executable/ReNdjsonApp.exe` available on your `$PATH` with a name you like. E.g.\n\n```\n$ cp -p _esy/default/store/b/re_ndjson-\u003chash\u003e/default/executable/ReNdjsonApp.exe ~/bin/ndjson\n$ echo \"export PATH=\\\"$HOME/bin:$PATH\\\"\" \u003e ~/.bashrc\n```\n\n## Contribute\n\nThe program is written in ReasonML and compiled to native. Feel free to open a PR or issue if you find something that could be better :-)\n\n## Alternatives\n\n* See [libraries section](http://ndjson.org/libraries.html) on ndjson.org\n* [jq](https://stedolan.github.io/jq/) handles NDJSON out of the box\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaello%2Fre-ndjson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikaello%2Fre-ndjson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikaello%2Fre-ndjson/lists"}