{"_id":"pull-generate","_rev":"9-315cf2af9780a18de0856fda0372fa44","name":"pull-generate","description":"pull-stream source that produces data on state transitions","dist-tags":{"latest":"2.2.0"},"versions":{"1.0.0":{"name":"pull-generate","version":"1.0.0","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"dependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"8b18c3b8b1cccc505cea84d8fa19a504ead02e7e","_id":"pull-generate@1.0.0","_shasum":"4c94e5e475468a0563432b3ce9461e5ee9be8ed1","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"4c94e5e475468a0563432b3ce9461e5ee9be8ed1","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-1.0.0.tgz","integrity":"sha512-1QZs2Ozs8vr/wxKePaHlozh17cl5J9BCgq3ZVdivWpbbqCQwqVPZ37nZ0k8Q1Og66yv1p/dVr0bauAKHjoFSAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAwJzXWX87HSR39lmK6mihMU6CigEgej/r3006vA26FqAiEAlS8JPAQz/em683iARJcJW7aVgUTb7pG75gmAnZl8beU="}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"1.0.1":{"name":"pull-generate","version":"1.0.1","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"85370da7ef04dbae0a64cd6b7548c38f779eb6ce","_id":"pull-generate@1.0.1","_shasum":"81980c81af03a6bf8dba5593ef3c181c5a4939fe","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"81980c81af03a6bf8dba5593ef3c181c5a4939fe","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-1.0.1.tgz","integrity":"sha512-elsxmlUw0myOcs5EGaBRwYKfQAtrBAZUOiX3MQf1/QR89JHsArtfQkkmARLo862h2Or8Wcfdh8dVRglFWSbGUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjwX4GcIU7tS+cDqGl/2j9BoEtZ0l3hu2C3Km7XIEEZwIgEB32wn1Egq6/FPOOYZEngRf4ac1mUAak05XnJHafT/0="}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"2.0.0":{"name":"pull-generate","version":"2.0.0","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"fd508cc3b9df5d583883d1add65beadcde16a729","_id":"pull-generate@2.0.0","_shasum":"48d63deeed204f8940aef1adf61f3631e345bf47","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"48d63deeed204f8940aef1adf61f3631e345bf47","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-2.0.0.tgz","integrity":"sha512-EfQrl7l2ZuxT7NVbiT2TgBcnQ38elWe3dVLF/144j7qtUhEqjDhcdqIXCj1nX6rlqs6fAZtf9gtLQBMdXXpyYA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcIMFiDJj9lJbvDLYW4hoeKaMU8grms1ZO4eBFFFvh3wIhAMBeZkJoWFeCJ1GmlcRYYozct8JBqFPBOsFOY1Cv2abe"}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"2.0.1":{"name":"pull-generate","version":"2.0.1","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"7cd2ab7971b6966fe36d651fbd072d3c1579a0e3","_id":"pull-generate@2.0.1","_shasum":"127485c896f6fe1348a3ec28bfd10bfd12acf8d1","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"127485c896f6fe1348a3ec28bfd10bfd12acf8d1","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-2.0.1.tgz","integrity":"sha512-4oQn0HFZMsk/yoAMJSDqCnEUJJayglU8KUHfOSX1aqf7YfxZWf44BQcRGG+lRz316voy2ErRarmtPZRFFj8JlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeOgXcN1vyOe1UJoU4OKHMTSdPfTmTUXyC1STUEYp4wwIgAvS9tBEDtCtzd49kV2E/hzmHHQpGPvmWJhnU79Id4Mk="}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"2.0.2":{"name":"pull-generate","version":"2.0.2","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"4e1b727a3ee6a48e761cfc382da237d665d0bd99","_id":"pull-generate@2.0.2","_shasum":"d826977563eb790dad911edf9231549bfce7f48e","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"d826977563eb790dad911edf9231549bfce7f48e","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-2.0.2.tgz","integrity":"sha512-+hHblYMqoPYYkR6NfFPuV3u0g7+DxlNoaukBqLAP8l3VGi8fghLqPLRL/n3lnz/NZpdetQ4p4UhAz2O7kaLiwQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC3u0LTXrSx3MIUSiMotL2uBlOual4sNtNUg/b7HCDQWAiEAyXIMxZzr2hOxZbYqux1pjDmP80COeQ6+0RWUn+kqpyg="}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"2.1.0":{"name":"pull-generate","version":"2.1.0","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.27.0","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"d0320fc592e09a2e79dcc0bceda55218fb6b3668","_id":"pull-generate@2.1.0","_shasum":"99e532c16b3fd8f73b6ac2144589e2fd2d663bac","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"99e532c16b3fd8f73b6ac2144589e2fd2d663bac","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-2.1.0.tgz","integrity":"sha512-Ti/2Ju60+KEoHAktHXp7wiNC6dVPNOGq4DrVXooHKQvj9ETS8MRrEMQi14jY9RvRIhc5NpMPD/uDyfzyysf29A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiKcAROSdGtP01XPK7cLddNXrf7OuW/E8LXHZXGzb8VQIhAM5TxYe1njMARfVk2tgzn6PNIttSejgobNirPU/j79M6"}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]},"2.2.0":{"name":"pull-generate","version":"2.2.0","description":"pull-stream source that produces data on state transitions","main":"index.js","scripts":{"test":"tape test/*"},"keywords":["pull-stream","source"],"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"license":"MIT","devDependencies":{"pull-stream":"^2.28.1","tape":"^4.2.0"},"directories":{"test":"test"},"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"homepage":"https://github.com/regular/pull-generate#readme","gitHead":"9b3281058f21717cac49b832823746103935bd6b","_id":"pull-generate@2.2.0","_shasum":"6d7837f0eedeabf514b347a4c3565cb19467c49c","_from":".","_npmVersion":"2.12.1","_nodeVersion":"1.8.1","_npmUser":{"name":"regular","email":"jan@lagomorph.de"},"dist":{"shasum":"6d7837f0eedeabf514b347a4c3565cb19467c49c","tarball":"https://registry.npmjs.org/pull-generate/-/pull-generate-2.2.0.tgz","integrity":"sha512-XoybUCw17GDTyGja/NZn/T6Y5QDpsAgQiK3ZZJz47oKU8j7JHDTAELaNM28tw3WeC2MN0EiBvckbGnsDykTm+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAP3t1WylWfHEvfJZo7YtkctlUoC3MdU+Ke/6R7N8K6KAiEA3sSXefD0NWGaqWOIyN2Wa+KKK4LG9N7FSOSVI4ztps0="}]},"maintainers":[{"name":"regular","email":"jan@lagomorph.de"}]}},"readme":"# pull-generate\nA [pull-stream](https://github.com/dominictarr/pull-stream) source that produces data on state transitions\n\n## Simple Example\n\n``` js\nvar generate = require('pull-generate')\nvar pull = require('pull-stream')\n\npull(\n    generate(0, function(state, cb) {\n        cb(state>3 ? true : null, 1<<state, state + 1)\n    }),\n    pull.log()\n)\n\n// ==> 1 2 4 8\n```\n\n## Usage\n\n### `generate(initialState, expand [, onAbort])`\n\n- `expand`: function that is called with `initialstate` and a callback.\n  - the callback has the following signature: `callback(err, data, newState)`\n      - `err`\n        - `null` to pass `data` downstream (normal operation)\n        - `true` indicates the end of the stream\n        - everything else is treated as an error\n      - `data` is send downstream (only if err === null)\n      - `newState` is used as `state` in the next call to `expand`.\n- onAbort: optional function that is called after the stream ended\n  - is called with `null` or an error object\n\n## License\nMIT\n","maintainers":[{"name":"regular","email":"jan@lagomorph.de"}],"time":{"modified":"2022-06-25T00:31:41.441Z","created":"2015-09-05T15:07:25.315Z","1.0.0":"2015-09-05T15:07:25.315Z","1.0.1":"2015-09-05T20:50:35.151Z","2.0.0":"2015-09-07T10:09:44.872Z","2.0.1":"2015-09-08T04:55:10.555Z","2.0.2":"2015-09-08T05:15:29.121Z","2.1.0":"2015-09-09T14:10:19.199Z","2.2.0":"2015-09-09T14:18:29.986Z"},"homepage":"https://github.com/regular/pull-generate#readme","keywords":["pull-stream","source"],"repository":{"type":"git","url":"git+https://github.com/regular/pull-generate.git"},"author":{"name":"Jan Bölsche","email":"jan@lagomorph.de","url":"http://regular.codes"},"bugs":{"url":"https://github.com/regular/pull-generate/issues"},"license":"MIT","readmeFilename":"README.md"}