{"_id":"newline-json","_rev":"13-70a9cf6353b7712ba70551c7bddae1d6","name":"newline-json","description":"New-line separated JSON streaming","dist-tags":{"latest":"0.1.1"},"versions":{"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"},"_id":"newline-json@0.0.1","dist":{"shasum":"7af5fafa20482bfdb2cf9cfa6d794cc06172690b","tarball":"https://registry.npmjs.org/newline-json/-/newline-json-0.0.1.tgz","integrity":"sha512-saDzaySukMamKbsMy97KOqZplvpepszXTiDa7O4d4PtaaHA/gQkPTNyGQl4Ys9pk6HcOMvBpMHRuzFkyu3p+gQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJ/eMl7G+Vzq/v/VZ/dzbJuMF/s1D4wX0nULcD5xAjQAiBlquIHD7SfSNq7IEN6kpx8R7mWuSL6WOmQFPkuQdFajg=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":"jj@crowdprocess.com"}],"directories":{}},"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"},"bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"_id":"newline-json@0.0.2","dist":{"shasum":"f2edfc9501e4584fe5a9e020ce63d6d3d81f19b7","tarball":"https://registry.npmjs.org/newline-json/-/newline-json-0.0.2.tgz","integrity":"sha512-gruVbC9DZUzJaTI20i4yBvpOWoqn6+Z7qSiCwLIoDDVmw3QXzwL27/dTQziwqzl5a6U0C9U4cljaVhEBpSelUA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFK7KuvIMpqnGLpDTvx38IRRDIUth7S0LODtZvNiroO1AiEAo37CSRaWhUJmeBcxDft4Th8U+lC2vpXjOQQxZ31yK/A="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":"jj@crowdprocess.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/newline-json/-/newline-json-0.0.3.tgz","integrity":"sha512-HMHQJsjfyAGdULLEK4GJCpP6svRWy5WFbC8lJ4+REI/iZwYCQaA4Pjrvbpr5KYsbIEfm0Kgz7yt+DH/Z5o/EQQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmc7bSmCw44lfVfo59kUHNAPwmZ5faOUIgIhW97qJF3AIhAPRPQnX2vn8Esf05BrJMWmXHm0O8gjQGW7Ni5Y3G4K3/"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":"jj@crowdprocess.com"}]},"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","tarball":"https://registry.npmjs.org/newline-json/-/newline-json-0.0.4.tgz","integrity":"sha512-BnPIGGgiTWW0Y8Nie4HVyAk7h53/i9eSsqAUyL8ekL5GzTQELy0Yyhwp9MWXay1nqirSrOBwYTE/JimjMyzT/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7AD79pX2ssXx31BIvCbdYsOn63Bk3+vI9fzy2tOpZIgIhAO+3R1MwFgowKqX8n4GgjrtTkbkdkH6hpkdV8NoBkwuj"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"joaojeronimo","email":"jj@crowdprocess.com"},"maintainers":[{"name":"joaojeronimo","email":"jj@crowdprocess.com"}]},"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":"jj@crowdprocess.com"}],"dist":{"shasum":"b69c5f128a67d5dd0bae6c0c1204242a85aba4b6","tarball":"https://registry.npmjs.org/newline-json/-/newline-json-0.1.1.tgz","integrity":"sha512-AFnhTkyTIwRwuEmjJ2jK8pJ/MyB3fyPRWP8d4L6hOUMezWj051FbcVmRmZTDCOmxkbsMrZzfVtaQOShzlFl8jw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAmOaZXNizdVgL4P6MwC0e2OHEv+8YU7vCWxE1mggJDnAiEA/G0SrA3J1oauoXOrkV9jj2ZZut+i8oucxG6EYEiUm8w="}]}}},"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","maintainers":[{"name":"joaojeronimo","email":"jj@crowdprocess.com"}],"time":{"modified":"2022-06-21T01:59:45.897Z","created":"2013-11-13T11:45:08.010Z","0.0.1":"2013-11-13T11:45:11.315Z","0.0.2":"2013-12-10T16:07:49.105Z","0.0.3":"2014-01-30T18:03:06.079Z","0.0.4":"2014-04-04T13:27:07.085Z","0.1.1":"2014-05-29T15:32:20.695Z"},"repository":{"type":"git","url":"ssh://git@github.com/CrowdProcess/newline-json.git"},"readmeFilename":"README.md","homepage":"https://github.com/CrowdProcess/newline-json","keywords":["JSON","stream","streams2","new-line"],"bugs":{"url":"https://github.com/CrowdProcess/newline-json/issues"},"license":"MIT","users":{"glukki":true}}