{"_id":"ndjson","_rev":"47699","name":"ndjson","description":"Streaming newline delimited json parser + serializer","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"time":{"modified":"2021-06-03T10:14:38.000Z","created":"2014-09-23T22:56:44.422Z","2.0.0":"2020-08-15T21:16:46.305Z","1.5.0":"2016-12-05T13:48:27.537Z","1.4.4":"2016-12-05T13:41:10.426Z","1.4.3":"2015-11-01T18:11:32.802Z","1.4.2":"2015-09-16T15:31:41.966Z","1.4.1":"2015-06-22T20:22:01.963Z","1.4.0":"2015-06-22T17:56:56.269Z","1.3.1":"2015-06-17T23:10:31.695Z","1.3.0":"2014-11-18T22:22:05.256Z","1.2.3":"2014-09-30T11:34:08.731Z","1.2.2":"2014-09-23T23:46:46.191Z","1.2.1":"2014-09-23T22:56:44.422Z"},"users":{"tunnckocore":true,"xu_q90":true,"nelix":true,"chimit":true,"shanewholloway":true,"fabian.moron.zirfas":true,"zkochan":true,"fahadmurtaza":true,"simonja":true,"lsloan":true,"eklem":true},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git://github.com/ndjson/ndjson.js.git"},"versions":{"2.0.0":{"name":"ndjson","version":"2.0.0","description":"Streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test/index.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","engines":{"node":">=10"},"dependencies":{"json-stringify-safe":"^5.0.1","minimist":"^1.2.5","readable-stream":"^3.6.0","split2":"^3.0.0","through2":"^4.0.0"},"devDependencies":{"concat-stream":"^2.0.0","tape":"^5.0.0"},"repository":{"type":"git","url":"git://github.com/ndjson/ndjson.js.git"},"bugs":{"url":"https://github.com/ndjson/ndjson.js/issues"},"homepage":"https://github.com/ndjson/ndjson.js","keywords":["ndjson","ldjson"],"gitHead":"dbc6ce28791930c85a0b724677543158df02aa34","_id":"ndjson@2.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.7","_npmUser":{"name":"contra","email":"yo@contra.io"},"dist":{"shasum":"320ac86f6fe53f5681897349b86ac6f43bfa3a19","size":2048,"noattachment":false,"key":"/ndjson/-/ndjson-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-2.0.0.tgz"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ndjson_2.0.0_1597526206185_0.9557584178345169"},"_hasShrinkwrap":false,"publish_time":1597526206305,"_cnpm_publish_time":1597526206305},"1.5.0":{"name":"ndjson","version":"1.5.0","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"json-stringify-safe":"^5.0.1","minimist":"^1.2.0","split2":"^2.1.0","through2":"^2.0.3"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^4.6.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"2bb834d45e1ff8894356e0f36e8d00dbf2c8a063","_id":"ndjson@1.5.0","_shasum":"ae603b36b134bcec347b452422b0bf98d5832ec8","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"finnpauls","email":"derfinn@gmail.com"},"dist":{"shasum":"ae603b36b134bcec347b452422b0bf98d5832ec8","size":2151,"noattachment":false,"key":"/ndjson/-/ndjson-1.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.5.0.tgz"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ndjson-1.5.0.tgz_1480945705636_0.05483738542534411"},"directories":{},"publish_time":1480945707537,"_cnpm_publish_time":1480945707537,"_hasShrinkwrap":false},"1.4.4":{"name":"ndjson","version":"1.4.4","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"minimist":"^1.2.0","split2":"^2.1.0","through2":"^2.0.3"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^4.6.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"01ca0690064fb68154cafb5587b60e4181e8c6fa","_id":"ndjson@1.4.4","_shasum":"782026736e1469fee6eea103e88571336c72c371","_from":".","_npmVersion":"3.10.9","_nodeVersion":"7.1.0","_npmUser":{"name":"finnpauls","email":"derfinn@gmail.com"},"dist":{"shasum":"782026736e1469fee6eea103e88571336c72c371","size":2074,"noattachment":false,"key":"/ndjson/-/ndjson-1.4.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.4.4.tgz"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/ndjson-1.4.4.tgz_1480945268323_0.5020050874445587"},"directories":{},"publish_time":1480945270426,"_cnpm_publish_time":1480945270426,"_hasShrinkwrap":false},"1.4.3":{"name":"ndjson","version":"1.4.3","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"split2":"^0.2.1","through2":"^0.6.1","minimist":"^1.2.0"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"98369e0c7c7aba3a8f099bc869f6c4c1c165d478","_id":"ndjson@1.4.3","_shasum":"7aa026fe3ab38a7da1a2b4ad07b1008e733eb239","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"7aa026fe3ab38a7da1a2b4ad07b1008e733eb239","size":2112,"noattachment":false,"key":"/ndjson/-/ndjson-1.4.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.4.3.tgz"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"directories":{},"publish_time":1446401492802,"_cnpm_publish_time":1446401492802,"_hasShrinkwrap":false},"1.4.2":{"name":"ndjson","version":"1.4.2","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"split2":"^0.2.1","through2":"^0.6.1","minimist":"^1.2.0"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"bf75873149ed6479e85fd6bde518197775af544c","_id":"ndjson@1.4.2","_shasum":"0a5b96c3c6f156bdffbda3dfbb0022a6e5ddd7a4","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"dist":{"shasum":"0a5b96c3c6f156bdffbda3dfbb0022a6e5ddd7a4","size":2114,"noattachment":false,"key":"/ndjson/-/ndjson-1.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.4.2.tgz"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"directories":{},"publish_time":1442417501966,"_cnpm_publish_time":1442417501966,"_hasShrinkwrap":false},"1.4.1":{"name":"ndjson","version":"1.4.1","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"f6184f77d08640f0a67f9b0f7ddb0d1db89e5168","_id":"ndjson@1.4.1","_shasum":"d6451f00165d764403ae89b548936b42ee18a1ac","_from":".","_npmVersion":"2.11.2","_nodeVersion":"1.8.2","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"d6451f00165d764403ae89b548936b42ee18a1ac","size":2106,"noattachment":false,"key":"/ndjson/-/ndjson-1.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.4.1.tgz"},"directories":{},"publish_time":1435004521963,"_cnpm_publish_time":1435004521963,"_hasShrinkwrap":false},"1.4.0":{"name":"ndjson","version":"1.4.0","description":"streaming newline delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"bin":{"ndjson":"cli.js"},"author":{"name":"max ogden"},"license":"BSD-3-Clause","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"concat-stream":"^1.5.0","tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","keywords":["ndjson","ldjson"],"gitHead":"b930bda7e93738180a051a70b6271ff5503ddbbc","_id":"ndjson@1.4.0","_shasum":"a81b6c2abdabe37322aff3714fb0ff205f5b3462","_from":".","_npmVersion":"2.11.2","_nodeVersion":"1.8.2","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"a81b6c2abdabe37322aff3714fb0ff205f5b3462","size":2580,"noattachment":false,"key":"/ndjson/-/ndjson-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.4.0.tgz"},"directories":{},"publish_time":1434995816269,"_cnpm_publish_time":1434995816269,"_hasShrinkwrap":false},"1.3.1":{"name":"ndjson","version":"1.3.1","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"author":{"name":"max ogden"},"license":"BSD-2-Clause","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","gitHead":"812bfdfdc9eca40fcc0596fdb8aec5734aaad835","_id":"ndjson@1.3.1","_shasum":"a68616b3ce1ae6bf72e15c9cb1c6a8a6a0bd2c14","_from":".","_npmVersion":"2.11.2","_nodeVersion":"1.8.2","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"a68616b3ce1ae6bf72e15c9cb1c6a8a6a0bd2c14","size":1743,"noattachment":false,"key":"/ndjson/-/ndjson-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.3.1.tgz"},"directories":{},"publish_time":1434582631695,"_cnpm_publish_time":1434582631695,"_hasShrinkwrap":false},"1.3.0":{"name":"ndjson","version":"1.3.0","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","gitHead":"4d35153740f628b13fa7e531e06405a4dd77a60d","_id":"ndjson@1.3.0","_shasum":"84f4d197986919620a763aa36c7058cbbdcf7351","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"finnpauls","email":"derfinn@gmail.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"84f4d197986919620a763aa36c7058cbbdcf7351","size":1828,"noattachment":false,"key":"/ndjson/-/ndjson-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.3.0.tgz"},"directories":{},"publish_time":1416349325256,"_cnpm_publish_time":1416349325256,"_hasShrinkwrap":false},"1.2.3":{"name":"ndjson","version":"1.2.3","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","gitHead":"c1ca54440176e5f5b99269417139cdef010bf701","_id":"ndjson@1.2.3","_shasum":"06bf6bd3e038d2387e30241ce042b6d860b4f6a9","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"finnpauls","email":"derfinn@gmail.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"06bf6bd3e038d2387e30241ce042b6d860b4f6a9","size":1661,"noattachment":false,"key":"/ndjson/-/ndjson-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.2.3.tgz"},"directories":{},"publish_time":1412076848731,"_cnpm_publish_time":1412076848731,"_hasShrinkwrap":false},"1.2.2":{"name":"ndjson","version":"1.2.2","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","gitHead":"ec4ebdc331d03579d81a70b94c5b905684610bf1","_id":"ndjson@1.2.2","_shasum":"54864dbf4e52ec41a472384f51cfb3a5c8ef536e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"finnpauls","email":"derfinn@gmail.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"54864dbf4e52ec41a472384f51cfb3a5c8ef536e","size":1656,"noattachment":false,"key":"/ndjson/-/ndjson-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.2.2.tgz"},"directories":{},"publish_time":1411516006191,"_cnpm_publish_time":1411516006191,"_hasShrinkwrap":false},"1.2.1":{"name":"ndjson","version":"1.2.1","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{"test":"tape test.js"},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.2.1","through2":"^0.6.1"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ndjson.git"},"bugs":{"url":"https://github.com/maxogden/ndjson/issues"},"homepage":"https://github.com/maxogden/ndjson","_id":"ndjson@1.2.1","_shasum":"a0dbadf5ca8a631f4e1b377bdf95a82f2a15bd12","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max+DONT+EMAIL+ME@maxogden.com"},"maintainers":[{"name":"finnpauls","email":""},{"name":"maxogden","email":""},{"name":"yocontra","email":""}],"dist":{"shasum":"a0dbadf5ca8a631f4e1b377bdf95a82f2a15bd12","size":1522,"noattachment":false,"key":"/ndjson/-/ndjson-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ndjson/download/ndjson-1.2.1.tgz"},"directories":{},"publish_time":1411513004422,"_cnpm_publish_time":1411513004422,"_hasShrinkwrap":false}},"readme":"# ndjson\n\nStreaming [newline delimited json](https://en.wikipedia.org/wiki/Line_Delimited_JSON) parser + serializer. Available as a JS API and a CLI.\n\n[![NPM](https://nodei.co/npm/ndjson.png)](https://nodei.co/npm/ndjson/)\n\n## Usage\n\n```\nconst ndjson = require('ndjson')\n```\n\n#### ndjson.parse([opts])\n\nReturns a transform stream that accepts newline delimited json buffers and emits objects of parsed data.\n\nExample file:\n\n```\n{\"foo\": \"bar\"}\n{\"hello\": \"world\"}\n```\n\nParsing it:\n\n```js\nfs.createReadStream('data.txt')\n  .pipe(ndjson.parse())\n  .on('data', function(obj) {\n    // obj is a javascript object\n  })\n```\n\n\n##### Options\n\n- `strict` can be set to false to discard non-valid JSON messages\n- All other options are passed through to the stream class.\n\n#### ndjson.stringify([opts])\n\nReturns a transform stream that accepts JSON objects and emits newline delimited json buffers.\n\nexample usage:\n\n```js\nvar serialize = ndjson.serialize()\nserialize.on('data', function(line) {\n  // line is a line of stringified JSON with a newline delimiter at the end\n})\nserialize.write({\"foo\": \"bar\"})\nserialize.end()\n```\n\n##### Options\n\nOptions are passed through to the stream class.\n\n### LICENSE\n\nBSD-3-Clause\n","_attachments":{},"homepage":"https://github.com/ndjson/ndjson.js","bugs":{"url":"https://github.com/ndjson/ndjson.js/issues"},"license":"BSD-3-Clause"}