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