{"name":"stream-to-pull-stream","description":"Convert a classic-stream, or a new-stream into a [pull-stream](https://github.com/dominictarr/pull-stream)","version":"1.1.4","homepage":"https://github.com/dominictarr/stream-to-pull-stream","repository":{"type":"git","url":"git://github.com/dominictarr/stream-to-pull-stream.git"},"dependencies":{"pull-stream":"~2.15"},"devDependencies":{"through":"~2.2.7","tape":"~0.3.3"},"scripts":{"test":"set -e; for t in test/*.js; do node $t; done"},"author":{"name":"Dominic Tarr","email":"dominic.tarr@gmail.com","url":"http://dominictarr.com"},"license":"MIT","_id":"stream-to-pull-stream@1.1.4","dist":{"shasum":"6fa9588269fabf8cfe42efcd0329d9e2c066909e","tarball":"http://registry-npm.ywwl.com/stream-to-pull-stream/download/stream-to-pull-stream-1.1.4.tgz","integrity":"sha512-2X0uvQXDHsiatwVOygTqYJsb2QfxYr3KWuzMqigtHqrLRxb2Ix4EQbJEpgCs9UmEAjCb4z68ZoFobMmh7zxlaA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCm9tc/RpBzbnX8TUahs3FZNlzqogEag0RtmYx6kEYfSAIhAP5ev3vTOEds6+cyu7H8zXjOK+8Qq/hIpxfNSf2k6YZa"}],"size":3357,"noattachment":false,"key":"/stream-to-pull-stream/-/stream-to-pull-stream-1.1.4.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"dominictarr","email":"dominic.tarr@gmail.com"},"maintainers":[{"name":"dominictarr","email":"dominic.tarr@gmail.com"}],"directories":{},"readme":"# stream-to-pull-stream\n\nConvert a classic-stream, or a new-stream into a\n[pull-stream](https://github.com/dominictarr/pull-stream)\n\n## example\n\n``` js\nvar toPull = require('stream-to-pull-stream')\nvar pull = require('pull-stream')\n\npull(\n  toPull.source(fs.createReadStream(__filename)),\n  pull.map(function (e) { return e.toString().toUpperCase() }),\n  toPull.sink(process.stdout, function (err) {\n    if(err) throw err\n    console.log('done')\n  })\n)\n```\n\nif the node steam is a duplex (i.e. net, ws) then use `toPull.duplex(stream, cb?)`\n`duplex` takes an optional callback in the same way that `sink` does.\n\n## License\n\nMIT\n","publish_time":1367603920305,"_cnpm_publish_time":1367603920305,"dist-tags":{"latest":"1.7.3"}}