{"_id":"ldjson-stream","_rev":"18-59ebb558dc2474359d73d27b985b7024","name":"ldjson-stream","description":"streaming line delimited json parser + serializer","dist-tags":{"latest":"1.2.1"},"versions":{"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"},"_id":"ldjson-stream@0.0.1","dist":{"shasum":"b7b8ab05e6a6fd9f54de6cbaaa801c1d5d2fd5ed","tarball":"https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-0.0.1.tgz","integrity":"sha512-WTKBeAbBHApASYe4otxrmo/ZmzUEH+vlpjmGbUzCbJAuCeusNK1+MEnw7KHPuyr23asnU93I4h40Qb0BDUfBqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD/XDli3FPQj6PZoIo+uYl/wE6lPmSfoB3Zq7vJGSPHhQIgFDC/iryVc1sOn8lCiA9Rq5ZjwMPTgdRFmb9TSCLjNPY="}]},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"maxogden","email":"max@maxogden.com"},"maintainers":[{"name":"maxogden","email":"max@maxogden.com"}]},"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":"max@maxogden.com"}],"dist":{"shasum":"bafbf25d72329b3abf691928dce2ed128b5b119c","tarball":"https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.0.0.tgz","integrity":"sha512-h4e7k/PJNi8sA8TJy1PjpsDRTGE7CS9+AhiCxPSbj01WIo0qC1HJwbreX0c/S8HZYWR5gKvMAxurbr2KBdO6yg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFWTaoRa0238urILsrusg0WRFzyEHlcMUDqVc9yxNp7/AiEArEsiz8Y583cm+v9qGdVJVWNdCM6lEVaVj4HTEGq7R1M="}]}},"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":"max@maxogden.com"}],"dist":{"shasum":"9a7321ba33f3aa3de5f6cc937a762ec100282448","tarball":"https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.1.0.tgz","integrity":"sha512-gmT/9fyI3ksT9MADT6LOE7Yw3L6RZn6k6vWsED4984yuhbfVU3F+V3yhHN90bQXbGMhz3u1IDLsOXFMDiqpjhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXNkzpmrvprioNvb5KxdlF8CrER2t3uwliFFTLt01xNAIhAOZB0DTdOrI/UvEE0lNfj9MNvONpR7ntoLmrDugMk55b"}]}},"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":"max@maxogden.com"}],"dist":{"shasum":"aff70f2d38c7cfee1c4bf32e33de3ce08c698358","tarball":"https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.2.0.tgz","integrity":"sha512-pV7guj9S2QQRvnWn/vMEstBErkaYFLUS0MvMFt5uW2hmR7bLq+niZ6+D7lhX8+OATcA17V3FAJTw7cjnAfQRig==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICP5g26Tme6gexCEsNIo17NUvPGmZy+4MBNEQ7e7xhUzAiAlRTqVmAAIICLXdL30yvweqy3q8tzegJKOipT5jAwc1A=="}]}},"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":"max@maxogden.com"}],"dist":{"shasum":"91beceda5ac4ed2b17e649fb777e7abfa0189c2b","tarball":"https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.2.1.tgz","integrity":"sha512-xw/nNEXafuPSLu8NjjG3+atVVw+8U1APZAQylmwQn19Hgw6rC7QjHvP6MupnHWCrzSm9m0xs5QWkCLuRvBPjgQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCl3s9rfI0JNJrK6L9R7EwMdwteZ5ilLOIG+pz0vup5twIgA8p7jLtm4m1LkEYlaKkIcJMDrKW+Mv0919LZT+eTbFc="}]}}},"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","maintainers":[{"name":"maxogden","email":"max@maxogden.com"}],"time":{"modified":"2022-06-19T11:06:24.220Z","created":"2013-08-30T21:18:54.244Z","0.0.1":"2013-08-30T21:18:55.607Z","1.0.0":"2014-06-15T01:56:29.805Z","1.1.0":"2014-06-17T15:36:52.179Z","1.2.0":"2014-08-09T18:17:42.926Z","1.2.1":"2014-08-12T21:35:48.441Z"},"author":{"name":"max ogden"},"repository":{"type":"git","url":"git://github.com/maxogden/ldjson-stream.git"},"homepage":"https://github.com/maxogden/ldjson-stream","bugs":{"url":"https://github.com/maxogden/ldjson-stream/issues"},"license":"BSD","readmeFilename":"readme.md","users":{"timhudson":true,"reid":true,"nilz3ro":true,"dzhou777":true,"cr8tiv":true}}