{"_id":"newline-json","_rev":"4670365","name":"newline-json","description":"New-line separated JSON streaming","dist-tags":{"latest":"0.1.1"},"maintainers":[{"name":"joaojeronimo","email":""}],"time":{"modified":"2026-04-10T23:02:43.000Z","created":"2013-11-13T11:45:11.315Z","0.1.1":"2014-05-29T15:32:20.695Z","0.0.4":"2014-04-04T13:27:07.085Z","0.0.3":"2014-01-30T18:03:06.079Z","0.0.2":"2013-12-10T16:07:49.105Z","0.0.1":"2013-11-13T11:45:11.315Z"},"users":{},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"versions":{"0.1.1":{"name":"newline-json","version":"0.1.1","description":"New-line separated JSON streaming","main":"index.js","scripts":{"test":"node tests/test.js"},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"keywords":["JSON","stream","streams2","new-line"],"license":"MIT","devDependencies":{"tap":"~0.4.8"},"dependencies":{"stream2buffer":"0.0.4"},"bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"homepage":"https://github.com/CrowdProcess/newline-json","_id":"newline-json@0.1.1","_shasum":"b69c5f128a67d5dd0bae6c0c1204242a85aba4b6","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"joaojeronimo","email":"joaopintojeronimo@gmail.com"},"maintainers":[{"name":"joaojeronimo","email":""}],"dist":{"shasum":"b69c5f128a67d5dd0bae6c0c1204242a85aba4b6","size":2546,"noattachment":false,"key":"/newline-json/-/newline-json-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/newline-json/download/newline-json-0.1.1.tgz"},"directories":{},"publish_time":1401377540695,"_hasShrinkwrap":false,"_cnpm_publish_time":1401377540695,"_cnpmcore_publish_time":"2021-12-16T23:39:14.511Z"},"0.0.4":{"name":"newline-json","version":"0.0.4","description":"New-line separated JSON streaming","main":"index.js","scripts":{"test":"node tests/test.js"},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"keywords":["JSON","stream","streams2","new-line"],"license":"MIT","devDependencies":{"tap":"~0.4.4","stream2buffer":"0.0.3"},"dependencies":{"readable-stream":"~1.1.10"},"bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"homepage":"https://github.com/CrowdProcess/newline-json","_id":"newline-json@0.0.4","dist":{"shasum":"239a952775c95a35df6a460999ead83c7464ca36","size":2428,"noattachment":false,"key":"/newline-json/-/newline-json-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/newline-json/download/newline-json-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":""}],"directories":{},"publish_time":1396618027085,"_hasShrinkwrap":false,"_cnpm_publish_time":1396618027085,"_cnpmcore_publish_time":"2021-12-16T23:39:14.714Z"},"0.0.3":{"name":"newline-json","version":"0.0.3","description":"New-line separated JSON streaming","main":"index.js","scripts":{"test":"node tests/test.js"},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"keywords":["JSON","stream","streams2","new-line"],"license":"MIT","devDependencies":{"tap":"~0.4.4","stream2buffer":"0.0.3"},"dependencies":{"readable-stream":"~1.1.10"},"bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"homepage":"https://github.com/CrowdProcess/newline-json","_id":"newline-json@0.0.3","dist":{"shasum":"aeb384ef110fa96c03db1975b477abf42fa380c5","size":2221,"noattachment":false,"key":"/newline-json/-/newline-json-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/newline-json/download/newline-json-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":""}],"directories":{},"publish_time":1391104986079,"_hasShrinkwrap":false,"_cnpm_publish_time":1391104986079,"_cnpmcore_publish_time":"2021-12-16T23:39:14.913Z"},"0.0.2":{"name":"newline-json","version":"0.0.2","description":"New-line separated JSON streaming","main":"index.js","scripts":{"test":"node tests/test.js"},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"keywords":["JSON","stream","streams2","new-line"],"license":"MIT","devDependencies":{"tap":"~0.4.4","stream2buffer":"0.0.3"},"dependencies":{"readable-stream":"~1.1.9"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"_id":"newline-json@0.0.2","dist":{"shasum":"f2edfc9501e4584fe5a9e020ce63d6d3d81f19b7","size":2222,"noattachment":false,"key":"/newline-json/-/newline-json-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/newline-json/download/newline-json-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":""}],"directories":{},"publish_time":1386691669105,"_hasShrinkwrap":false,"_cnpm_publish_time":1386691669105,"_cnpmcore_publish_time":"2021-12-16T23:39:15.121Z"},"0.0.1":{"name":"newline-json","version":"0.0.1","description":"New-line separated JSON streaming","main":"index.js","scripts":{"test":"node tests/test.js"},"keywords":["JSON","stream","streams2","new-line"],"license":"MIT","devDependencies":{"tap":"~0.4.4","stream2buffer":"0.0.3"},"readmeFilename":"README.md","_id":"newline-json@0.0.1","dist":{"shasum":"7af5fafa20482bfdb2cf9cfa6d794cc06172690b","size":2124,"noattachment":false,"key":"/newline-json/-/newline-json-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/newline-json/download/newline-json-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":""}],"directories":{},"publish_time":1384343111315,"_hasShrinkwrap":false,"_cnpm_publish_time":1384343111315,"_cnpmcore_publish_time":"2021-12-16T23:39:15.319Z"}},"readme":"# newline-json\n\nJust like [JSONStream](https://github.com/dominictarr/JSONStream),\nbut instead of streaming valid JSON arrays, it streams new-line separated\nJSON objects.\n\n**It requires browserify 3.x from 0.1 upwards, versions 0.0.x are compatible with browserify 2.x.**\n\n## Example\n\nIf you have a readable stream like\n\n```js\nvar n = 100;\nvar nlj = new Readable();\nnlj._read = function _read () {\n  if (n--)\n    nlj.push('{\"this\":\"is\",\"js\":\"on\"}\\n'); // new-line separated JSON!\n  else\n    nlj.push(null);\n}\nreturn nlj;\n```\n\nyou can pipe it to the parser\n\n```js\nvar Parser = require('newline-json').Parser;\nvar parser = new Parser();\nnlj.pipe(parser);\n```\n\nwhat comes out of the parser will be the the objects you piped to it, parsed.\nYou can pipe those again to the stringifier:\n\n```js\nvar Stringifier = require('newline-json').Stringifier;\nvar stringifier = new Stringifier();\nparser.pipe(stringifier);\n```\n\nAnd if you have nothing better to do today, be sure to try\n\n```js\nparser.pipe(stringifier);\nstringifier.pipe(parser);\n```\n\n## Why ?\n\nCouldn't find one on npm that used the\n[`Transform`](http://nodejs.org/api/stream.html#stream_class_stream_transform_1),\nand IMO if you don't need to parse complex object paths, then you'd be better off\nusing a new-line separated JSON. Also, it's probably much easier to write parsers\nlike this in other languages and environments, which is good if your stack is\nnot 100% node.js.\n","_attachments":{},"homepage":"https://github.com/CrowdProcess/newline-json","bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"license":"MIT"}