parse Newline delimited JSON as array of json
npm install ndjson-parse[![Build Status][travis-image]][travis-url]
[![NPM Version][npm-image]][npm-url]
* NDJSON - Newline delimited JSON
js
const ndjsonParser = require('ndjson-parse');const ndjsonString =
{"some":"thing"}const parsedNdjson = ndjsonParser(ndjsonString);
console.log(parsedNdjson[0].some) // thing
`Example NDJSON
~~~~~
{"some":"thing"}
{"foo":17,"bar":false,"quux":true}
{"may":{"include":"nested","objects":["and","arrays"]}}
~~~~~
(with
\n` line separators)
[travis-url]: https://travis-ci.org/AlonMiz/ndjson-parse
[travis-image]: https://travis-ci.org/AlonMiz/ndjson-parse.svg?branch=master
[npm-url]: https://npmjs.org/package/ndjson-parse
[npm-image]: https://img.shields.io/npm/v/ndjson-parse.svg