{"_id":"resumer","_rev":"6469","name":"resumer","description":"a through stream that starts paused and resumes on the next tick","dist-tags":{"latest":"0.0.0"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"time":{"modified":"2023-03-24T10:40:38.000Z","created":"2013-05-17T22:20:55.118Z","0.0.0":"2013-05-17T22:20:55.118Z"},"users":{},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"git://github.com/substack/resumer.git"},"versions":{"0.0.0":{"name":"resumer","version":"0.0.0","description":"a through stream that starts paused and resumes on the next tick","main":"index.js","dependencies":{"through":"~2.3.4"},"devDependencies":{"tap":"~0.4.0","tape":"~1.0.2","concat-stream":"~0.1.1"},"scripts":{"test":"tap test/*.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","chrome/20..latest","firefox/10..latest","safari/latest","opera/11.0..latest","iphone/6","ipad/6"]},"repository":{"type":"git","url":"git://github.com/substack/resumer.git"},"homepage":"https://github.com/substack/resumer","keywords":["through","stream","pause","resume"],"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"license":"MIT","readmeFilename":"readme.markdown","_id":"resumer@0.0.0","dist":{"shasum":"f1e8f461e4064ba39e82af3cdc2a8c893d076759","size":2437,"noattachment":false,"key":"/resumer/-/resumer-0.0.0.tgz","tarball":"http://name.csiicloud.com:7001/resumer/download/resumer-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.2","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"nopersonsmodules","email":"nopersonsmodules@gmail.com"}],"directories":{},"publish_time":1368829255118,"_cnpm_publish_time":1368829255118,"_hasShrinkwrap":false}},"readme":"# resumer\n\nReturn a through stream that starts out paused and resumes on the next tick,\nunless somebody called `.pause()`.\n\nThis module has the same signature as\n[through](https://npmjs.com/package/through).\n\n[![browser support](https://ci.testling.com/substack/resumer.png)](http://ci.testling.com/substack/resumer)\n\n[![build status](https://secure.travis-ci.org/substack/resumer.png)](http://travis-ci.org/substack/resumer)\n\n# example\n\n``` js\nvar resumer = require('resumer');\nvar s = createStream();\ns.pipe(process.stdout);\n\nfunction createStream () {\n    var stream = resumer();\n    stream.queue('beep boop\\n');\n    return stream;\n}\n```\n\n```\n$ node example/resume.js\nbeep boop\n```\n\n# methods\n\n``` js\nvar resumer = require('resumer')\n```\n\n## resumer(write, end)\n\nReturn a new through stream from `write` and `end`, which default to\npass-through `.queue()` functions if not specified.\n\nThe stream starts out paused and will be resumed on the next tick unless you\ncall `.pause()` first.\n\n`write` and `end` get passed directly through to\n[through](https://npmjs.com/package/through).\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install resumer\n```\n\n# license\n\nMIT\n","_attachments":{},"readmeFilename":"readme.markdown","homepage":"https://github.com/substack/resumer","license":"MIT"}