Synchronous reader of a string containing many lines in JSON format
npm install read-json-lines-sync


Synchronous reader of a string containing many lines in JSON format
npm install --save read-json-lines-sync
`
or with yarn:
`
yarn add read-json-lines-sync
`usage
`js
import readJsonLines from 'read-json-lines-sync';
// or alternative syntax:
// const readJsonLines = require('read-json-lines-sync').default;const lines =
{"foo":"bar"};const result = readJsonLines(lines);
expect(result).to.deep.equal([
{ foo: 'bar' },
{ foo2: 'bar2' },
]);
``