Convert an array of objects to a stream of ndjson data.
Install
$ npm install array-to-ndjson
Usage
const arrayToNdjson = ; ; // => Readable Stream // Example piping the stream // => File will contain: // // {"name":"Foo","value":10} // {"name":"Bar","value":9}
API
arrayToNdjson(input)
input
Type: Object[]
Array of objects that you want to convert to NDJSON format.
License
MIT © Simon