{"_id":"collect-json","_rev":"47929","name":"collect-json","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","dist-tags":{"latest":"1.0.9"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-03T10:14:43.000Z","created":"2015-07-02T23:20:25.814Z","1.0.9":"2021-03-26T15:44:49.447Z","1.0.8":"2016-04-14T11:18:06.612Z","1.0.7":"2016-02-13T21:04:59.164Z","1.0.6":"2016-02-04T15:47:14.620Z","1.0.5":"2016-01-02T21:57:20.118Z","1.0.4":"2015-12-26T00:25:52.901Z","1.0.3":"2015-12-22T22:40:14.739Z","1.0.2":"2015-12-21T19:12:04.913Z","1.0.1":"2015-12-20T17:20:22.722Z","1.0.0":"2015-07-10T21:44:43.327Z","0.1.1":"2015-07-06T09:31:03.204Z","0.1.0":"2015-07-03T22:49:58.615Z","0.0.0":"2015-07-02T23:20:25.814Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"versions":{"1.0.9":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.9","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"^1.0.4","stream-connect":"^1.0.2","stream-via":"^1.0.4"},"devDependencies":{"jsdoc-to-markdown":"^7.0.1","tape":"^4.13.3"},"gitHead":"2e16546fdd0553137f9298a17ad1b01e9dd802d3","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.9","_nodeVersion":"15.12.0","_npmVersion":"7.6.3","dist":{"shasum":"eb9906ef3160899e46e8482fac13a5e591dae9ae","size":2974,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.9.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.9.tgz"},"_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"directories":{},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/collect-json_1.0.9_1616773489264_0.3075539112965875"},"_hasShrinkwrap":false,"publish_time":1616773489447,"_cnpm_publish_time":1616773489447},"1.0.8":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.8","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"^1.0.2","stream-connect":"^1.0.2","stream-via":"^1.0.3"},"devDependencies":{"jsdoc-to-markdown":"^1.3.3","tape":"^4.5.1"},"gitHead":"8e86e23a1bac74c8c4c32130b6e6e33555f3ea91","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.8","_shasum":"aa2fa52b4d1d9444ce690f07a1e3617ab74bb827","_from":".","_npmVersion":"3.8.7","_nodeVersion":"5.10.1","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"aa2fa52b4d1d9444ce690f07a1e3617ab74bb827","size":2984,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.8.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/collect-json-1.0.8.tgz_1460632684148_0.2529411627911031"},"directories":{},"publish_time":1460632686612,"_cnpm_publish_time":1460632686612,"_hasShrinkwrap":false},"1.0.7":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.7","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"^1.0.1","stream-connect":"^1","stream-via":"^1.0.1"},"devDependencies":{"jsdoc-to-markdown":"^1.3.2","tape":"^4.3.0"},"gitHead":"fc291545aec690bb57cd898bb6015d94bb90ec82","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.7","_shasum":"2e09c3f8cc351d68370fa65108c8411d4ccab387","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"2e09c3f8cc351d68370fa65108c8411d4ccab387","size":2838,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.7.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/collect-json-1.0.7.tgz_1455397496941_0.6712984920013696"},"directories":{},"publish_time":1455397499164,"_cnpm_publish_time":1455397499164,"_hasShrinkwrap":false},"1.0.6":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.6","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"^1.0.0","stream-connect":"^1","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.3.2","tape":"^4.3.0"},"gitHead":"87bc38681c78cb37b9b7bddf0f87cf5a059174e3","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.6","_shasum":"daee9eaeb85ec2c9b9a74bd09e21ef7c61aabec8","_from":".","_npmVersion":"3.7.0","_nodeVersion":"5.5.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"daee9eaeb85ec2c9b9a74bd09e21ef7c61aabec8","size":2839,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.6.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/collect-json-1.0.6.tgz_1454600833264_0.6877570650540292"},"directories":{},"publish_time":1454600834620,"_cnpm_publish_time":1454600834620,"_hasShrinkwrap":false},"1.0.5":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.5","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"~0.2.0","stream-connect":"^1","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.3.2","tape":"^4.3.0"},"gitHead":"a68444e7ae46d27ac60e5037b4bf9acff36f775a","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.5","_shasum":"93f0fdc9686887c80b475704e2d9eba2081661c9","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"93f0fdc9686887c80b475704e2d9eba2081661c9","size":2860,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.5.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1451771840118,"_cnpm_publish_time":1451771840118,"_hasShrinkwrap":false},"1.0.4":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.4","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"~0.2.0","stream-connect":"~0.2.2","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.3.2","tape":"^4.3.0"},"gitHead":"a7785e42c6460bdc444f1e75a1cfbff4803dee83","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.4","_shasum":"f1fcc13e21dde4dc4862800bbfd248a0288e9747","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"f1fcc13e21dde4dc4862800bbfd248a0288e9747","size":2855,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.4.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1451089552901,"_cnpm_publish_time":1451089552901,"_hasShrinkwrap":false},"1.0.3":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.3","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"~0.2.0","stream-connect":"~0.1.0","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"b23b1f9e060da5a6f9162249ab9d28cbc69dc507","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.3","_shasum":"9a32b62bfeee053de27a821c858d2d455e80ab49","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"9a32b62bfeee053de27a821c858d2d455e80ab49","size":2809,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.3.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1450824014739,"_cnpm_publish_time":1450824014739,"_hasShrinkwrap":false},"1.0.2":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.2","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"~0.1.0","stream-connect":"~0.1.0","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"61e465fbead4ef913d85121c144d04e977458bdf","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.2","_shasum":"3ca2377f4746a0cfe9b5672330898b063b508b80","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"3ca2377f4746a0cfe9b5672330898b063b508b80","size":2819,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.2.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1450725124913,"_cnpm_publish_time":1450725124913,"_hasShrinkwrap":false},"1.0.1":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.1","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"collect-all":"~0.1.0","stream-connect":"~0.1.0","stream-via":"~0.1.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"636ff446ef65c3a31d1237a96add5c63fb3df3ae","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.1","_shasum":"953c475c00b9dc6c1884bbb419d0f74d34145e26","_from":".","_npmVersion":"3.5.3","_nodeVersion":"5.3.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"953c475c00b9dc6c1884bbb419d0f74d34145e26","size":2811,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1450632022722,"_cnpm_publish_time":1450632022722,"_hasShrinkwrap":false},"1.0.0":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","bin":{"collect-json":"bin/cli.js"},"keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^2.1.0","collect-all":"~0.1.0","stream-connect":"~0.1.0","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"58d89464d5f5d468a5068fee73c52fce84930ec2","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@1.0.0","_shasum":"414783e55db7f943ce644ce3b993e3060e223115","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"414783e55db7f943ce644ce3b993e3060e223115","size":3101,"noattachment":false,"key":"/collect-json/-/collect-json-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1436564683327,"_cnpm_publish_time":1436564683327,"_hasShrinkwrap":false},"0.1.1":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.1","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","bin":{"collect-json":"bin/cli.js"},"keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^2.1.0","collect-all":"~0.1.0","stream-connect":"~0.1.0","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"3bc067fafb6707b128c3d2c343dd3fffc1f23c3f","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@0.1.1","_shasum":"c14151eacc0eb40bc43faad787b9d9c798e03e8d","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"c14151eacc0eb40bc43faad787b9d9c798e03e8d","size":3094,"noattachment":false,"key":"/collect-json/-/collect-json-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-0.1.1.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1436175063204,"_cnpm_publish_time":1436175063204,"_hasShrinkwrap":false},"0.1.0":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.1.0","description":"Returns a stream which becomes readable with a single value once all (valid) JSON is received.","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","bin":{"collect-json":"bin/cli.js"},"keywords":["stream","collect","all","json","buffer","transform"],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"dependencies":{"ansi-escape-sequences":"^2.1.0","collect-all":"~0.1.0","stream-connect":"~0.1.0","stream-via":"~0.1.0","typical":"^2.3.0"},"devDependencies":{"jsdoc-to-markdown":"^1.1.1","tape":"^4.0.0"},"gitHead":"b96a9754ae6a66c331891c32c29d7d9f5ef4396b","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@0.1.0","_shasum":"e9b12fbb5965173151be02092503c0ac931f3e0c","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"e9b12fbb5965173151be02092503c0ac931f3e0c","size":2976,"noattachment":false,"key":"/collect-json/-/collect-json-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-0.1.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435963798615,"_cnpm_publish_time":1435963798615,"_hasShrinkwrap":false},"0.0.0":{"name":"collect-json","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"0.0.0","description":"collect-json","repository":{"type":"git","url":"git+https://github.com/75lb/collect-json.git"},"license":"MIT","main":"./lib/collect-json.js","bin":{"collect-json":"bin/cli.js"},"keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","lint":"jshint lib/*.js bin/*.js test/*.js; echo","docs":"jsdoc2md -t jsdoc2md/README.hbs lib/*.js > README.md; echo"},"bugs":{"url":"https://github.com/75lb/collect-json/issues"},"homepage":"https://github.com/75lb/collect-json#readme","_id":"collect-json@0.0.0","_shasum":"329e915239cb253508787ee2bf2474fc95f09124","_from":".","_npmVersion":"2.12.0","_nodeVersion":"0.12.5","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"329e915239cb253508787ee2bf2474fc95f09124","size":1780,"noattachment":false,"key":"/collect-json/-/collect-json-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/collect-json/download/collect-json-0.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"directories":{},"publish_time":1435879225814,"_cnpm_publish_time":1435879225814,"_hasShrinkwrap":false}},"readme":"[![view on npm](https://badgen.net/npm/v/collect-json)](https://www.npmjs.org/package/collect-json)\n[![npm module downloads](https://badgen.net/npm/dt/collect-json)](https://www.npmjs.org/package/collect-json)\n[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/collect-json)](https://github.com/75lb/collect-json/network/dependents?dependent_type=REPOSITORY)\n[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/collect-json)](https://github.com/75lb/collect-json/network/dependents?dependent_type=PACKAGE)\n[![Build Status](https://travis-ci.org/75lb/collect-json.svg?branch=master)](https://travis-ci.org/75lb/collect-json)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n# collect-json\n\n***DEPRECATED: Please use [stream-read-all](https://github.com/75lb/stream-read-all) instead.***\n\n<a name=\"module_collect-json\"></a>\n\n## collect-json\nReturns a stream which becomes readable with a single value once all (valid) JSON is received.\n\n<a name=\"exp_module_collect-json--collectJson\"></a>\n\n### collectJson([callback]) ⇒ [<code>Duplex</code>](https://nodejs.org/api/stream.html#stream_class_stream_duplex) ⏏\n**Kind**: Exported function  \n\n| Param | Type | Description |\n| --- | --- | --- |\n| [callback] | <code>function</code> | called with the collected json data, once available. The value returned by the callback will be passed downstream. |\n\n**Example**  \nAn example command-line client script - JSON received at stdin is stamped with `received` then written to stdout.\n```js\nvar collectJson = require(\"collect-json\")\n\nprocess.stdin\n    .pipe(collectJson(function(json){\n        json.received = true\n        return JSON.stringify(json)\n    }))\n    .on(\"error\", function(err){\n        // input from stdin failed to parse\n    })\n    .pipe(process.stdout)\n```\n\n* * *\n\n&copy; 2015-21 Lloyd Brookes \\<75pound@gmail.com\\>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/collect-json#readme","bugs":{"url":"https://github.com/75lb/collect-json/issues"},"license":"MIT"}