{"_id":"wrap-stream","_rev":"404046","name":"wrap-stream","description":"Wrap the output of a stream with a prefix and/or suffix","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"time":{"modified":"2021-08-04T04:42:32.000Z","created":"2013-10-06T07:33:55.389Z","2.0.0":"2014-07-29T22:21:17.211Z","0.0.0":"2013-10-06T07:33:55.389Z"},"users":{"jden":true,"jsdnxx":true},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"repository":{"type":"git","url":"git://github.com/hughsk/wrap-stream"},"versions":{"2.0.0":{"name":"wrap-stream","description":"Wrap the output of a stream with a prefix and/or suffix","version":"2.0.0","main":"index.js","browser":"index.js","dependencies":{"through2":"^0.4.2"},"devDependencies":{"tape":"~1.1.1","concat-stream":"~1.0.1"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"contributors":"jden <jason@denizac.org","license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/wrap-stream"},"bugs":{"url":"https://github.com/hughsk/wrap-stream/issues"},"keywords":["wrap","prefix","suffix","stream","output"],"gitHead":"d4f2e8b4ec2f83d7852256221be364c4638623b1","homepage":"https://github.com/hughsk/wrap-stream","_id":"wrap-stream@2.0.0","_shasum":"a800753de07a5e022b37a90de82f2ac0bd473830","_from":".","_npmVersion":"1.5.0-alpha-4","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"dist":{"shasum":"a800753de07a5e022b37a90de82f2ac0bd473830","size":1969,"noattachment":false,"key":"/wrap-stream/-/wrap-stream-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-stream/download/wrap-stream-2.0.0.tgz"},"directories":{},"publish_time":1406672477211,"_cnpm_publish_time":1406672477211,"_hasShrinkwrap":false},"0.0.0":{"name":"wrap-stream","description":"Wrap the output of a stream with a prefix and/or suffix","version":"0.0.0","main":"index.js","browser":"index.js","dependencies":{"through":"~2.3.4"},"devDependencies":{"tape":"~1.1.1","concat-stream":"~1.0.1"},"scripts":{"test":"node test"},"author":{"name":"Hugh Kennedy","email":"hughskennedy@gmail.com","url":"http://github.com/hughsk"},"license":"MIT","repository":{"type":"git","url":"git://github.com/hughsk/wrap-stream"},"bugs":{"url":"https://github.com/hughsk/wrap-stream/issues"},"keywords":["wrap","prefix","suffix","stream","output"],"readmeFilename":"README.md","_id":"wrap-stream@0.0.0","dist":{"shasum":"d22a63a3444796e48f686d6fbb873c4848f28d6e","size":1921,"noattachment":false,"key":"/wrap-stream/-/wrap-stream-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/wrap-stream/download/wrap-stream-0.0.0.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"hughsk","email":"hughskennedy@gmail.com"},"maintainers":[{"name":"hughsk","email":"hughskennedy@gmail.com"}],"directories":{},"publish_time":1381044835389,"_cnpm_publish_time":1381044835389,"_hasShrinkwrap":false}},"readme":"# wrap-stream [![unstable](http://hughsk.github.io/stability-badges/dist/unstable.svg)](http://github.com/hughsk/stability-badges) #\n\nWrap the output of a stream with a prefix and/or suffix.\n\nStreams2 compliant.\n\n## Usage ##\n\n[![wrap-stream](https://nodei.co/npm/wrap-stream.png?mini=true)](https://nodei.co/npm/wrap-stream)\n\n### `wrap(pre, post)` ###\n\nReturns a through stream that adds `pre` before any other output and `post`\nafter calling `stream.end()`.\n\n``` javascript\nvar wrap = require('wrap-stream')\nvar fs = require('fs')\n\nfs.createReadStream(__filename)\n  .pipe(wrap('hello', 'world'))\n  .pipe(process.stdout)\n```\n\nIf you'd prefer not to use either of `pre` or `post`, just pass `null` in its\nplace.\n\n``` javascript\nvar wrap = require('wrap-stream')\nvar fs = require('fs')\n\nfs.createReadStream(__filename)\n  .pipe(wrap(null, 'lorem ipsum'))\n  .pipe(process.stdout)\n```\n\n## License ##\n\nMIT. See [LICENSE.md](http://github.com/hughsk/wrap-stream/blob/master/LICENSE.md) for details.\n","_attachments":{},"homepage":"https://github.com/hughsk/wrap-stream","bugs":{"url":"https://github.com/hughsk/wrap-stream/issues"},"license":"MIT"}