{"_id":"from","_rev":"46998","name":"from","description":"Easy way to make a Readable Stream","dist-tags":{"latest":"0.1.7"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"time":{"modified":"2021-06-03T10:14:26.000Z","created":"2012-07-04T16:02:50.010Z","0.1.7":"2017-03-11T21:58:43.305Z","0.1.3":"2013-03-17T08:00:19.431Z","0.1.2":"2013-02-19T10:08:07.509Z","0.1.1":"2012-12-14T03:10:44.699Z","0.0.2":"2012-07-15T04:59:25.425Z","0.0.1":"2012-07-04T16:27:46.477Z","0.0.0":"2012-07-04T16:02:50.010Z"},"users":{"chrisdickinson":true,"sloanb":true},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"versions":{"0.1.7":{"name":"from","version":"0.1.7","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","gitHead":"b14b530f53dccb45cad5eab62544bcdf0da918db","bugs":{"url":"https://github.com/dominictarr/from/issues"},"homepage":"https://github.com/dominictarr/from#readme","_id":"from@0.1.7","_shasum":"83c60afc58b9c56997007ed1a768b3ab303a44fe","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"dist":{"shasum":"83c60afc58b9c56997007ed1a768b3ab303a44fe","size":3268,"noattachment":false,"key":"/from/-/from-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.1.7.tgz"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/from-0.1.7.tgz_1489269523077_0.6877304948866367"},"directories":{},"publish_time":1489269523305,"_cnpm_publish_time":1489269523305,"_hasShrinkwrap":false},"0.1.3":{"name":"from","version":"0.1.3","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","readmeFilename":"readme.markdown","_id":"from@0.1.3","dist":{"shasum":"ef63ac2062ac32acf7862e0d40b44b896f22f3bc","size":3016,"noattachment":false,"key":"/from/-/from-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.1.3.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1363507219431,"_hasShrinkwrap":false,"_cnpm_publish_time":1363507219431},"0.1.2":{"name":"from","version":"0.1.2","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","readmeFilename":"readme.markdown","_id":"from@0.1.2","dist":{"shasum":"3980e43c2fabddf99194f648162c0b52532f8197","size":2998,"noattachment":false,"key":"/from/-/from-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.1.2.tgz"},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1361268487509,"_hasShrinkwrap":false,"_cnpm_publish_time":1361268487509},"0.1.1":{"name":"from","version":"0.1.1","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","readmeFilename":"readme.markdown","_id":"from@0.1.1","dist":{"shasum":"6c4d6e2a05214d3a7a965fa4c9da3a370205b79e","size":2955,"noattachment":false,"key":"/from/-/from-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.1.1.tgz"},"_npmVersion":"1.1.65","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1355454644699,"_hasShrinkwrap":false,"_cnpm_publish_time":1355454644699},"0.0.2":{"name":"from","version":"0.0.2","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","_id":"from@0.0.2","dist":{"shasum":"7fffac647a2f99b20d57b8e28379455cbb4189d0","size":2701,"noattachment":false,"key":"/from/-/from-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.0.2.tgz"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1342328365425,"_hasShrinkwrap":false,"_cnpm_publish_time":1342328365425},"0.0.1":{"name":"from","version":"0.0.1","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","_id":"from@0.0.1","dist":{"shasum":"58406361cd4a6ab714d2aad18dedda99e3077733","size":2619,"noattachment":false,"key":"/from/-/from-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.0.1.tgz"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1341419266477,"_hasShrinkwrap":false,"_cnpm_publish_time":1341419266477},"0.0.0":{"name":"from","version":"0.0.0","description":"Easy way to make a Readable Stream","main":"index.js","scripts":{"test":"asynct test/*.js"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"keywords":["stream","streams","readable","easy"],"devDependencies":{"asynct":"1","stream-spec":"0","assertions":"~2.3.0"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"license":"MIT","_id":"from@0.0.0","dist":{"shasum":"829cb76fa1a54c0983e35ff43afb49db9910b8e2","size":2635,"noattachment":false,"key":"/from/-/from-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/from/download/from-0.0.0.tgz"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1341417770010,"_hasShrinkwrap":false,"_cnpm_publish_time":1341417770010}},"readme":"[![TravisCI Build Status](https://travis-ci.org/nmhnmh/from.svg?branch=master)](https://travis-ci.org/nmhnmh/from)\n\n# from\n\nAn easy way to create a `readable Stream`.\n\n## from(function getChunk(count, next))\n\nfrom takes a `getChunk` function and returns a stream.  \n\n`getChunk` is called again and again, after each time the user calls `next()`, \nuntil the user emits `'end'`\n\nif `pause()` is called, the `getChunk` won't be called again untill `resume()` is called.\n\n\n```js\nvar from = require('from')\n\nvar stream = \n  from(function getChunk(count, next) {\n    //do some sort of data\n    this.emit('data', whatever)\n    \n    if(itsOver)\n      this.emit('end')\n\n    //ready to handle the next chunk\n    next()\n    //or, if it's sync:\n    return true \n  })\n```\n\n## from(array)\n\nfrom also takes an `Array` whose elements it emits one after another.\n\n## License\nMIT / Apache2\n","_attachments":{},"homepage":"https://github.com/dominictarr/from#readme","bugs":{"url":"https://github.com/dominictarr/from/issues"},"license":"MIT"}