Package Exports
- pull-parrot
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pull-parrot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-parrot
Clone a pull-stream manually.
Parrot stream is a pushable stream that let's you push both end and data. It's mainly useful for creating other
pull-stream modules.
parrot-stream will end once an error happened inside a sink or once you invoke end.
Usage
parrot.push(end, data);
Push end and data as you get them.
parrot.end(reason)
This will end the stream after it'll drain everything in the buffer. reason might be an error. Default is true.
Example
var pull = require("pull-stream");
var parrot = require("../")();
parrot.push(null, 1)
parrot.push(null, 2)
parrot.push(new Error(), null)
parrot.push(null, 3)
parrot.end()
pull(
parrot,
pull.log()
)install
With npm do:
npm install pull-parrotlicense
MIT