{"_id":"ldjson-stream","_rev":"45533","name":"ldjson-stream","description":"streaming line delimited json parser + serializer","dist-tags":{"latest":"1.2.1"},"maintainers":[{"name":"maxogden","email":""}],"time":{"modified":"2021-06-03T10:14:00.000Z","created":"2013-08-30T21:18:55.607Z","1.2.1":"2014-08-12T21:35:48.441Z","1.2.0":"2014-08-09T18:17:42.926Z","1.1.0":"2014-06-17T15:36:52.179Z","1.0.0":"2014-06-15T01:56:29.805Z","0.0.1":"2013-08-30T21:18:55.607Z"},"users":{"timhudson":true,"reid":true,"nilz3ro":true,"dzhou777":true,"cr8tiv":true},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"versions":{"1.2.1":{"name":"ldjson-stream","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/ldjson-stream.git"},"bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"homepage":"https://github.com/maxogden/ldjson-stream","_id":"ldjson-stream@1.2.1","_shasum":"91beceda5ac4ed2b17e649fb777e7abfa0189c2b","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"91beceda5ac4ed2b17e649fb777e7abfa0189c2b","size":1329,"noattachment":false,"key":"/ldjson-stream/-/ldjson-stream-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ldjson-stream/download/ldjson-stream-1.2.1.tgz"},"directories":{},"publish_time":1407879348441,"_cnpm_publish_time":1407879348441,"_hasShrinkwrap":false},"1.2.0":{"name":"ldjson-stream","version":"1.2.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.0","through2":"^0.6.0"},"devDependencies":{"tape":"^2.13.3"},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"homepage":"https://github.com/maxogden/ldjson-stream","_id":"ldjson-stream@1.2.0","_shasum":"aff70f2d38c7cfee1c4bf32e33de3ce08c698358","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"aff70f2d38c7cfee1c4bf32e33de3ce08c698358","size":1328,"noattachment":false,"key":"/ldjson-stream/-/ldjson-stream-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ldjson-stream/download/ldjson-stream-1.2.0.tgz"},"directories":{},"publish_time":1407608262926,"_cnpm_publish_time":1407608262926,"_hasShrinkwrap":false},"1.1.0":{"name":"ldjson-stream","version":"1.1.0","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.1.2","through2":"^0.5.1"},"devDependencies":{},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"gitHead":"5a0fd83e9ad7a1e5f2a42dcd78609ae064d4c121","homepage":"https://github.com/maxogden/ldjson-stream","_id":"ldjson-stream@1.1.0","_shasum":"9a7321ba33f3aa3de5f6cc937a762ec100282448","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"9a7321ba33f3aa3de5f6cc937a762ec100282448","size":1339,"noattachment":false,"key":"/ldjson-stream/-/ldjson-stream-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ldjson-stream/download/ldjson-stream-1.1.0.tgz"},"directories":{},"publish_time":1403019412179,"_cnpm_publish_time":1403019412179,"_hasShrinkwrap":false},"1.0.0":{"name":"ldjson-stream","version":"1.0.0","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split2":"^0.1.1","through2":"^0.5.1"},"devDependencies":{},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"gitHead":"256caa371bec6f9004ed25b8e50ed21a028c920d","homepage":"https://github.com/maxogden/ldjson-stream","_id":"ldjson-stream@1.0.0","_shasum":"bafbf25d72329b3abf691928dce2ed128b5b119c","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"dist":{"shasum":"bafbf25d72329b3abf691928dce2ed128b5b119c","size":1189,"noattachment":false,"key":"/ldjson-stream/-/ldjson-stream-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/ldjson-stream/download/ldjson-stream-1.0.0.tgz"},"directories":{},"publish_time":1402797389805,"_cnpm_publish_time":1402797389805,"_hasShrinkwrap":false},"0.0.1":{"name":"ldjson-stream","version":"0.0.1","description":"streaming line delimited json parser + serializer","main":"index.js","scripts":{},"author":{"name":"max ogden"},"license":"BSD","dependencies":{"split":"~0.2.10","through":"~2.3.4"},"devDependencies":{},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"readmeFilename":"readme.md","_id":"ldjson-stream@0.0.1","dist":{"shasum":"b7b8ab05e6a6fd9f54de6cbaaa801c1d5d2fd5ed","size":943,"noattachment":false,"key":"/ldjson-stream/-/ldjson-stream-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/ldjson-stream/download/ldjson-stream-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":""}],"directories":{},"publish_time":1377897535607,"_cnpm_publish_time":1377897535607,"_hasShrinkwrap":false}},"readme":"# ldjson-stream\n\n#### streaming line delimited json parser + serializer\n\n[![NPM](https://nodei.co/npm/ldjson-stream.png)](https://nodei.co/npm/ldjson-stream/)\n\n## usage\n\n```\nvar ldj = require('ldjson-stream')\n```\n\n#### ldj.parse()\n\nreturns a transform stream that accepts newline delimited json and emits objects\n\nexample newline delimited json:\n\n`data.txt`:\n\n```\n{\"foo\": \"bar\"}\n{\"hello\": \"world\"}\n```\n\nIf you want to discard non-valid JSON messages, you can call `ldj.parse({strict: false})`\n\nusage:\n\n```js\nfs.createReadStream('data.txt')\n  .pipe(ldj.parse())\n  .on('data', function(obj) {\n    // obj is a javascript object\n  })\n```\n\n#### ldj.serialize()\n\nreturns a transform stream that accepts json objects and emits newline delimited json\n\nexample usage:\n\n```js\nvar serialize = ldj.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### license\n\nBSD\n","_attachments":{},"homepage":"https://github.com/maxogden/ldjson-stream","bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"license":"BSD"}