{"_id":"json-streamify","_rev":"17-5b1991e4c7d3af4fb09126767c075f55","name":"json-streamify","description":"Streaming version of `JSON.stringify`","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"json-streamify","description":"Streaming version of `JSON.stringify`","version":"0.1.0","homepage":"https://github.com/DTrejo/json-streamify","repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"main":"streamify.js","directories":{"lib":"."},"scripts":{"test":"nodeunit test/test.js"},"dependencies":{"traverse":">=0.2.6"},"devDependencies":{"nodeunit":">=0.5.1"},"engines":{"node":">=0.4.1"},"_id":"json-streamify@0.1.0","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.1","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"b823ff3adf7bff295c43ba70fea0f92e4862bb66","tarball":"https://registry.npmjs.org/json-streamify/-/json-streamify-0.1.0.tgz","integrity":"sha512-abtlAREtZrIYUnF6pqjsTmDYDa1tZGDClQ8TDyMgJ9SZdgW95LSrxDJFt+K46eM1inFYBIv8gSoGV4yQywCEUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDghN+PEtttBBB+sj+1I4mZPJ7ooffnZiiWqaZjF6l0fQIgNhCBrVhgc+veh9Wg5bTzyb8iCDQ6FIeO432k0oVbZZg="}]}},"0.1.1":{"name":"json-streamify","description":"Streaming version of `JSON.stringify`","version":"0.1.1","homepage":"https://github.com/DTrejo/json-streamify","repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"main":"streamify.js","directories":{"lib":"."},"scripts":{"test":"nodeunit test/test.js"},"dependencies":{"traverse":">=0.2.6"},"devDependencies":{"nodeunit":">=0.5.1"},"engines":{"node":">=0.4.1"},"_id":"json-streamify@0.1.1","_engineSupported":true,"_npmVersion":"0.3.17","_nodeVersion":"v0.4.1","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"5b5fd4fefa2e04d5adbffeada2801ea1bdf9b88f","tarball":"https://registry.npmjs.org/json-streamify/-/json-streamify-0.1.1.tgz","integrity":"sha512-g7ylLs5boAm3BpxjxDEJ+3hDvCg2PCqKC65FerL2iacCiq8gK/++bte9JoRQDlf/eqTjPE12C2Qkz/c07/GWZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3/yFuQxKNkw0dk3kDPYWN+QURxLavDi0+oGeRKLo86wIhALeIOZDQetR2dWWdTJYuDBXz/nuLAUi7PlZjr0Mis9zz"}]}},"0.1.2":{"name":"json-streamify","description":"Streaming version of `JSON.stringify`","version":"0.1.2","homepage":"https://github.com/DTrejo/json-streamify","repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"maintainers":[{"name":"dtrejo","email":"dtrejo@cs.brown.edu"}],"main":"streamify.js","scripts":{"test":"nodeunit test/test.js"},"dependencies":{"traverse":">=0.2.6"},"devDependencies":{"nodeunit":">=0.6.2"},"engines":{"node":"0.6.x"},"_npmUser":{"name":"dtrejo","email":"dtrejo@cs.brown.edu"},"_id":"json-streamify@0.1.2","_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"1a00557322b1c3b6f11079c960cbd2bc492584ef","tarball":"https://registry.npmjs.org/json-streamify/-/json-streamify-0.1.2.tgz","integrity":"sha512-QvzWsWmPBFB/PdNCbz9NIFIFNZKBQR/Su4kRdf78/z/RiF7iKszACuUc1M/J5XdeRLGjX81O+nyN9wGmmzfLGg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjCliUmXhoC/ewcantO5cA/ZxRYwLPpvmRjPc/TLBtlAiBPOn70R4NPtojs1nuQY07QrGuA24P9Fu6Z+Pq/H3fn+Q=="}]}},"0.1.3":{"name":"json-streamify","description":"Streaming version of `JSON.stringify`","version":"0.1.3","homepage":"https://github.com/DTrejo/json-streamify","repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"maintainers":[{"name":"dtrejo","email":"dtrejo@cs.brown.edu"}],"main":"streamify.js","scripts":{"test":"nodeunit test/test.js"},"dependencies":{"traverse":">=0.2.6"},"devDependencies":{"nodeunit":">=0.6.2"},"engines":{"node":"0.6.x"},"bugs":{"url":"https://github.com/DTrejo/json-streamify/issues"},"_id":"json-streamify@0.1.3","dist":{"shasum":"4ecad6aa0af7c8837ffd56ba8a14d02877f342be","tarball":"https://registry.npmjs.org/json-streamify/-/json-streamify-0.1.3.tgz","integrity":"sha512-96Y+5+QEDnOqedDzItarvwd8jz36j+5RgaHxwYazNbRVqI2tvMErEZ1BaAN8bJ+E8mrZXPj/BsWuhnsQeEmYZg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZAXpQPlRtfBDaN4ynok2t/sGTuntRpHAd0bas1+xu/gIgLK/VN1JpVAWB3TOlPbPUKIq/RVLvcCSbShCkGf8fDHM="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"dtrejo","email":"david.daniel.trejo@gmail.com"}},"0.1.4":{"name":"json-streamify","description":"Streaming version of `JSON.stringify`","version":"0.1.4","homepage":"https://github.com/DTrejo/json-streamify","repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"maintainers":[{"name":"dtrejo","email":"dtrejo@cs.brown.edu"},{"name":"michaelmior","email":"michael.mior@gmail.com"}],"main":"streamify.js","scripts":{"test":"nodeunit test/test.js"},"dependencies":{"traverse":">=0.2.6"},"devDependencies":{"nodeunit":">=0.6.2"},"engines":{"node":"0.6.x"},"gitHead":"d6ab203b2922d0c823b189bc59b032abe118afe5","bugs":{"url":"https://github.com/DTrejo/json-streamify/issues"},"_id":"json-streamify@0.1.4","_shasum":"1c18074a7009bf7bd2d21443cc425b9864cd089d","_from":".","_npmVersion":"2.2.0","_nodeVersion":"1.0.3","_npmUser":{"name":"michaelmior","email":"michael.mior@gmail.com"},"dist":{"shasum":"1c18074a7009bf7bd2d21443cc425b9864cd089d","tarball":"https://registry.npmjs.org/json-streamify/-/json-streamify-0.1.4.tgz","integrity":"sha512-2qLDmqrcQb793ygPurY+ASMe25/hBO3vDgXJTKdqq/dg+Mzu3kGvINUlCqefM9bLGWnxH4Zuj0m/WU+bv2rUhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB5GAx9ngcouH2K1Nn5JmrwDCAfDz+lla875rTtvOHU1AiBTnkJygJ9/cyhGx2szT4PdRt0RfQwH52LkZb7M0b5QJQ=="}]}}},"maintainers":[{"name":"dtrejo","email":"dtrejo@cs.brown.edu"},{"name":"michaelmior","email":"michael.mior@gmail.com"}],"time":{"modified":"2022-06-19T06:27:16.704Z","created":"2011-03-27T02:56:07.956Z","0.1.0":"2011-03-27T02:56:08.036Z","0.1.1":"2011-04-04T22:36:56.891Z","0.1.2":"2011-11-13T23:54:45.509Z","0.1.3":"2013-10-28T23:40:11.241Z","0.1.4":"2015-03-25T14:24:46.237Z"},"author":{"name":"David Trejo","email":"dtrejo@cs.brown.edu","url":"http://dtrejo.com/"},"repository":{"type":"git","url":"git://github.com/DTrejo/json-streamify.git"},"readme":"# JSON Streamify\n\n[![Build Status](https://travis-ci.org/DTrejo/json-streamify.png)](http://travis-ci.org/DTrejo/json-streamify)\n\nA streaming version of `JSON.stringify`.\n\n    npm install json-streamify\n\n## Methods\n\n### `streamify(object, function)`\n\nPasses the function chunks of the object until there is none of the object left.\n`streamify` is a synchronous function.\n\n    var assert = require('assert')\n      , streamify = require('../streamify').streamify\n      , streamingWrite = require('../streamify').streamingWrite\n      , fs = require('fs')\n      , object = { a: 1, b: 2, c: 3}\n\n    var str = '';\n    streamify(object, function(data) { str += data; });\n    console.log(str);\n    // => {\"a\":1,\"b\":2,\"c\":3}\n\n### `streamingWrite(filepath, object, callback)`\n\nWrites chunks of the object to the given filepath until there is none of the object left.\nWhen it finishes, it calls `callback`.\n\n    var str = '';\n    streamingWrite('./ACOOLFILE.txt', object, function(data) { str += data; }, function() {\n\n      console.log(fs.readFileSync('./ACOOLFILE'));\n      // => {\"a\":1,\"b\":2,\"c\":3}\n    });\n\nMost of this was written by [James Halliday](http://substack.net), with a few small things by [David Trejo](http://dtrejo.com/).\n\n### TODOs\n\n- allow a stream to be passed into `streamify(object, stream)`?\n","homepage":"https://github.com/DTrejo/json-streamify","bugs":{"url":"https://github.com/DTrejo/json-streamify/issues"},"readmeFilename":"readme.md"}