stream-to-pull-stream
Advanced tools
Comparing version 1.4.1 to 1.5.0
@@ -181,2 +181,7 @@ var pull = require('pull-core') | ||
exports.read2 = read2 | ||
exports.duplex = function (stream) { | ||
return { | ||
source: source(stream), | ||
sink: sink(stream) | ||
} | ||
} |
{ | ||
"name": "stream-to-pull-stream", | ||
"description": "convert a stream1 or streams2 stream into a pull-stream", | ||
"version": "1.4.1", | ||
"version": "1.5.0", | ||
"homepage": "https://github.com/dominictarr/stream-to-pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -9,9 +9,9 @@ # stream-to-pull-stream | ||
``` js | ||
var toPullStream = require('stream-to-pull-stream') | ||
var toPull = require('stream-to-pull-stream') | ||
var pull = require('pull-stream') | ||
pull( | ||
toPullStream.source(fs.createReadStream(__filename)), | ||
toPull.source(fs.createReadStream(__filename)), | ||
pull.map(function (e) { return e.toString().toUpperCase() }), | ||
toPullStream.sink(process.stdout, function (err) { | ||
toPull.sink(process.stdout, function (err) { | ||
if(err) throw err | ||
@@ -23,4 +23,6 @@ console.log('done') | ||
if the node steam is a duplex (i.e. net, ws) then use `toPull.duplex(stream)` | ||
## License | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10892
355
27