{"_id":"from","_rev":"21-b1aa6ca3489054d80375efaa8b1bee00","name":"from","description":"Easy way to make a Readable Stream","dist-tags":{"latest":"0.1.7"},"versions":{"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","tarball":"https://registry.npmjs.org/from/-/from-0.0.0.tgz","integrity":"sha512-7S2HzAu3iM+L1moGQ2QX8NzovnYfiD31MRSMc43pUvXlxZZhopi5dyi9wYq9/htjedVx19tAXiOJ7M2+szdc+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE+2J5XZqA2NWbnbA0elkbiKT5jin3GlvR4m953pOASkAiEAu2omenhFwfX0Gi4Wwk5fysPElD5FdWxOZuY42+9VA8Q="}]},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/from/-/from-0.0.1.tgz","integrity":"sha512-wKAIMPLc0kWa+jjcuRfqdgcaojLOpDVhfYGKgyisMwK0gqaWDPqHDTxN6xgv01kZ2VfsRMcNCC0kWv/sSyd5dQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDRzUyKI3t+/71IFOflLnzPHkmORASwJ+9OOhuSs1tVgAiEAo4iUkRM1pCEXPS729mX4p6DX3krsrt8Nbmr87T01+1k="}]},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/from/-/from-0.0.2.tgz","integrity":"sha512-QQzrIRCUBX2GjGZa+eHIZtb6BknDnxzAW7vpmvUFfalIUbodQSIgHNY9whjnbjgyL5UnXfV04cFkrA1tpGRMDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6DCLN7v8hJC3cupCiAD/4ifkr+s4WwFJhSspjjVL29QIgeNxVB6SOdzNp8B5gh2whN1aR2724RIuWSGX5UzJYTag="}]},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","_id":"from@0.1.1","dist":{"shasum":"6c4d6e2a05214d3a7a965fa4c9da3a370205b79e","tarball":"https://registry.npmjs.org/from/-/from-0.1.1.tgz","integrity":"sha512-65YD1vNKO3Q+89hB1ibL1uLTaSQeQHV/sQHMiQxvN20GFU83q7afKBoZznIJfZZtpCc/j56SMA3nbDsQjjD7Sw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGkod37w1eAkiJiqBgx7MiYUvO0OJjURMQn3KyOw8uwaAiEAuPKoIwqxOgj0mQRIjhoMxNlgm9wxZ32D1FDkfU0hpoM="}]},"_npmVersion":"1.1.65","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","_id":"from@0.1.2","dist":{"shasum":"3980e43c2fabddf99194f648162c0b52532f8197","tarball":"https://registry.npmjs.org/from/-/from-0.1.2.tgz","integrity":"sha512-pqZiMY+SSlGNexsaZrLYOh7GLOSJfY0QczKnhzvSG50K2x/6BlBEgYqz1/2dD05oWfVRQStIBLNRqcWOR0myUg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIChPFMw1u4zpCriIHtQBBApokJHzxnXp6e/ptRg6wPTwAiEA17wA1lLROQYeO1wEM7l5VIV1vejOR2Emx+72u/Sl91g="}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","_id":"from@0.1.3","dist":{"shasum":"ef63ac2062ac32acf7862e0d40b44b896f22f3bc","tarball":"https://registry.npmjs.org/from/-/from-0.1.3.tgz","integrity":"sha512-6vRx8eR96XRincv/5OIVNb5jxGRiaqQjdGq/VeDm4JvuwFH2gbpjFm0Afg8bqmFxTT1zP+4mNoG0k0C9+yvnEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+Bet71Fiux9Dv9xACp+eAmc40pAYcmKDxiSYLveTd+wIhALJtm6vgA0I3SVkAdEMtCnZjCQ7KZRgqMqHZnYh6UB51"}]},"_from":".","_npmVersion":"1.2.3","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{}},"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","tarball":"https://registry.npmjs.org/from/-/from-0.1.7.tgz","integrity":"sha512-twe20eF1OxVxp/ML/kq2p1uc6KvFK/+vs8WjEbeKmV2He22MKm7YF2ANIt+EOqhJ5L3K/SuuPhk0hWQDjOM23g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSkyZfMqOWu+EN/JvGUM4xzJKQ4j1pxwplY450AnHGLgIhAPCetulJu2g8Kv+NQ57VhXRn2LdoayLS0vvdOuYaS0fs"}]},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/from-0.1.7.tgz_1489269523077_0.6877304948866367"},"directories":{}}},"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","maintainers":[{"email":"nopersonsmodules@gmail.com","name":"nopersonsmodules"}],"time":{"modified":"2022-06-18T03:43:06.496Z","created":"2012-07-04T16:02:45.264Z","0.0.0":"2012-07-04T16:02:50.010Z","0.0.1":"2012-07-04T16:27:46.477Z","0.0.2":"2012-07-15T04:59:25.425Z","0.1.1":"2012-12-14T03:10:44.699Z","0.1.2":"2013-02-19T10:08:07.509Z","0.1.3":"2013-03-17T08:00:19.431Z","0.1.7":"2017-03-11T21:58:43.305Z"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"dominictarr.com"},"repository":{"type":"git","url":"git://github.com/dominictarr/from.git"},"users":{"chrisdickinson":true,"sloanb":true},"homepage":"https://github.com/dominictarr/from#readme","keywords":["stream","streams","readable","easy"],"bugs":{"url":"https://github.com/dominictarr/from/issues"},"license":"MIT","readmeFilename":"readme.markdown"}