{"_id":"json-streams","_rev":"12-fffc692c524528e07525049791b739ba","name":"json-streams","description":"Streams for parsing and stringifying big JSON objects","dist-tags":{"latest":"0.2.2"},"versions":{"0.1.0":{"name":"json-streams","description":"Streams for parsing and stringifying big JSON objects","version":"0.1.0","homepage":"http://github.com/floby/node-json-streams","repository":{"type":"git","url":"git://github.com/floby/node-json-streams.git"},"author":{"name":"Florent Jaby","email":"florent.jaby@gmail.com"},"main":"lib/index.js","directories":{"lib":"lib"},"engines":{"node":"0.4"},"dependencies":{"tokenizer":"0.1","parser":"0.1"},"_id":"json-streams@0.1.0","_engineSupported":true,"_npmVersion":"0.3.18","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"40104f79619854e1f9caa50434c07f25e6958ee7","tarball":"https://registry.npmjs.org/json-streams/-/json-streams-0.1.0.tgz","integrity":"sha512-ciGpjQyJvWj90JQhvJuW0rT461BZSx+2Xv7+jaIrPvIcJbsaTXFWdM4ugiLGILnLWIOmgOk9LMWnAXggE0HU1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9xRCkMYK80idRBlwuyM8ReKySIWVv2sD0BMvcrq1VqwIhAPMpljgvS2p25gJ7V8LVkhZHwYNwYEY+DtzKE2CW2Va3"}]}},"0.1.1":{"name":"json-streams","description":"Streams for parsing and stringifying big JSON objects","version":"0.1.1","homepage":"http://github.com/floby/node-json-streams","repository":{"type":"git","url":"git://github.com/floby/node-json-streams.git"},"author":{"name":"Florent Jaby","email":"florent.jaby@gmail.com"},"main":"lib/index.js","directories":{"lib":"lib"},"engines":{"node":"0.4 - 0.9.0"},"dependencies":{"tokenizer":"0.1","parser":"0.1"},"devDependencies":{"vows":"0.6+"},"scripts":{"test":"vows ./test/*.vow.js"},"readme":"","_id":"json-streams@0.1.1","dist":{"shasum":"fb18c47827836d0249eef0257e21b1d25f158003","tarball":"https://registry.npmjs.org/json-streams/-/json-streams-0.1.1.tgz","integrity":"sha512-pCRRLJZL/qSVR2Rr2AnaoPIP2ER6zfa6EC58Eo35WG6L2Jx8q5F8yIF3stFxOWRPUAczRVPVptLG/X1GCJKHAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFGAw/ztG9odJK2mZdGYMlxuBA5a0qJyeDZWgzBJ10TQAiEAp2pxtgiEKUngDJzP/hSxrzBiD7gRs6naLjiM4zuBpAw="}]},"maintainers":[{"name":"floby","email":"florent.jaby@gmail.com"}]},"0.2.1":{"name":"json-streams","description":"Streams for parsing and stringifying big JSON objects","version":"0.2.1","homepage":"http://github.com/floby/node-json-streams","engine":{"node":">=0.10"},"repository":{"type":"git","url":"git://github.com/floby/node-json-streams.git"},"author":{"name":"Florent Jaby","email":"florent.jaby@gmail.com"},"main":"lib/index.js","directories":{"lib":"lib"},"engines":{"node":"0.4 - 0.9.0"},"dependencies":{"tokenizer":"0.1","parser":"0.1","object-iterator":"0.2"},"devDependencies":{"nodeunit":"0.7"},"scripts":{"test":"nodeunit test/test-*.js"},"bin":{"json-parse":"bin/parse.js"},"readme":"# Synopsis\nStreaming parser and stringifier that act like writable and readable streams\n\n_/!\\ This module has been partly rewritten to work with new streams in node >= 0.10 /!\\_\n\n## Run tests\n\n[![Build Status](https://secure.travis-ci.org/Floby/node-json-streams.png)](http://travis-ci.org/Floby/node-json-streams)\n\n`npm test`\n\n## ParseStream\nYou can build a `ParseStream` like so:\n\n``` javascript\nvar json = require('json-streams');\nvar p = json.createParseStream();\n```\n\n`p` is an instance of the `json.ParseStream` class. `json.ParseStream` is a\nwritable stream which means you can write or pipe data to it.\n\n``` javascript\nvar net = require('net');\nvar c = net.createConnection(1337, 'example.com');\nc.pipe(p);\n```\n\nAt the moment, ParseStream supports only one output event which is the \n`'end'` event. The listener gets called with the fully parsed object as\nargument. No data is buffered during the parsing so you can load very big\nJSON files. Support for finer events is on the TODO list as well as the\npossibility to ignore some objects that are not needed and should be\n_\"garbage collected\"_\n\n``` javascript\np.on('end', function(object) {\n    // do something with your object\n})\n```\n\n## StringifyStream\n`StringifyStream` is only a *very* thin wrapper around\n[json-streamify](http://github.com/DTrejo/json-streamify). In fact, It is so \nthin that everything is still synchronous. Wrapping this correctly or \nrewriting some parts is at top priority on the TODO list.\n\n# TODO\n* improve `StringifyStream` so that it can pause when stringifying an object\nand continue later.\n* allow users to register on more specific events on `ParseStream`. I'm\nthinking of somekind of subscription pattern where one could register for\n`o.member`, `o.member.arrayMember[n]` or `o.member.arrayMember[3]`. However\nthis is *very* non-trivial and should be somewhat retrocompatible with the\ncurrent behaviour.\n\n# Bugs / Forks / Patches / Pull requests\nYou are very welcome to file bugs on the\n[github tracker](http://github.com/floby/node-json-streams) and send\npatches or pull requests.\n\n\n# License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2012 Florent Jaby\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.markdown","_id":"json-streams@0.2.1","dist":{"shasum":"5684d28cac74d7861f8b7e89b0eac74905f6281a","tarball":"https://registry.npmjs.org/json-streams/-/json-streams-0.2.1.tgz","integrity":"sha512-QRpeNxblCkqyG+DVEOq3Uxb0JZo+Bx4zQg94hfYHzalbBsmH4VRyR09RdOZOnA2Pl5DBYcREuTgEoIdqfTh/EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYIs353DDvJfiqEqOZaxWEZh2COl436a1ba4s0EmLkgQIhAIr8Hvs7NSiUq2ZwkdM2Hp8j/u/cmbXXZwJ8v2IHOzhR"}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"floby","email":"florent.jaby@gmail.com"},"maintainers":[{"name":"floby","email":"florent.jaby@gmail.com"}]},"0.2.2":{"name":"json-streams","description":"Streams for parsing and stringifying big JSON objects","version":"0.2.2","homepage":"http://github.com/floby/node-json-streams","engine":{"node":">=0.10"},"repository":{"type":"git","url":"git://github.com/floby/node-json-streams.git"},"author":{"name":"Florent Jaby","email":"florent.jaby@gmail.com"},"main":"lib/index.js","directories":{"lib":"lib"},"engines":{"node":"0.4 - 0.9.0"},"dependencies":{"tokenizer":"0.1","parser":"0.1","object-iterator":"0.2"},"devDependencies":{"nodeunit":"0.7","stream-sink":"1.x.x"},"scripts":{"test":"nodeunit test/test-*.js"},"bin":{"json-parse":"bin/parse.js"},"readme":"# Synopsis\nStreaming parser and stringifier that act like writable and readable streams\n\n_/!\\ This module has been partly rewritten to work with new streams in node >= 0.10 /!\\_\n\n## Run tests\n\n[![Build Status](https://secure.travis-ci.org/Floby/node-json-streams.png)](http://travis-ci.org/Floby/node-json-streams)\n\n`npm test`\n\n## ParseStream\nYou can build a `ParseStream` like so:\n\n``` javascript\nvar json = require('json-streams');\nvar p = json.createParseStream();\n```\n\n`p` is an instance of the `json.ParseStream` class. `json.ParseStream` is a\nwritable stream which means you can write or pipe data to it.\n\n``` javascript\nvar net = require('net');\nvar c = net.createConnection(1337, 'example.com');\nc.pipe(p);\n```\n\nAt the moment, ParseStream supports only one output event which is the \n`'end'` event. The listener gets called with the fully parsed object as\nargument. No data is buffered during the parsing so you can load very big\nJSON files. Support for finer events is on the TODO list as well as the\npossibility to ignore some objects that are not needed and should be\n_\"garbage collected\"_\n\n``` javascript\np.on('end', function(object) {\n    // do something with your object\n})\n```\n\n## StringifyStream\n`StringifyStream` is only a *very* thin wrapper around\n[json-streamify](http://github.com/DTrejo/json-streamify). In fact, It is so \nthin that everything is still synchronous. Wrapping this correctly or \nrewriting some parts is at top priority on the TODO list.\n\n# TODO\n* improve `StringifyStream` so that it can pause when stringifying an object\nand continue later.\n* allow users to register on more specific events on `ParseStream`. I'm\nthinking of somekind of subscription pattern where one could register for\n`o.member`, `o.member.arrayMember[n]` or `o.member.arrayMember[3]`. However\nthis is *very* non-trivial and should be somewhat retrocompatible with the\ncurrent behaviour.\n\n# Bugs / Forks / Patches / Pull requests\nYou are very welcome to file bugs on the\n[github tracker](http://github.com/floby/node-json-streams) and send\npatches or pull requests.\n\n\n# License\n\n[MIT](http://opensource.org/licenses/MIT)\n\nCopyright (c) 2012 Florent Jaby\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.markdown","_id":"json-streams@0.2.2","dist":{"shasum":"ea8ec72fa4712b464875162ae33f69146c82cb72","tarball":"https://registry.npmjs.org/json-streams/-/json-streams-0.2.2.tgz","integrity":"sha512-qwGA0VU/azyFsudnJ9LTYlnl57ukVDaH5LuKMzMaZc5WQBSqXlkcA9VY7LqYP6pAhOM11lYQxyBV5eSieHsKeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD4BZCerBD94+2h+u3wS10sRWm8HbnxLOaE5ULILJ90xwIhAOyCco0Hix8JbY5EmghMdl1DzK9o20ot2aHITD6HtE5N"}]},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"floby","email":"florent.jaby@gmail.com"},"maintainers":[{"name":"floby","email":"florent.jaby@gmail.com"}]}},"maintainers":[{"name":"floby","email":"florent.jaby@gmail.com"}],"time":{"modified":"2022-06-19T06:27:17.701Z","created":"2011-04-15T20:41:55.757Z","0.1.0":"2011-04-15T20:41:56.334Z","0.1.1":"2012-08-05T13:34:48.103Z","0.2.1":"2013-03-25T17:21:57.691Z","0.2.2":"2013-03-29T15:29:27.957Z"},"author":{"name":"Florent Jaby","email":"florent.jaby@gmail.com"},"repository":{"type":"git","url":"git://github.com/floby/node-json-streams.git"},"users":{"evan-king":true}}