Package Exports
- pull-otherwise
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-otherwise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
pull-otherwise
Read from an alternative source, if the main ended.
Usage
otherwise(alt);
alt
- Alternative source stream.
Example
var pull = require("pull-stream");
var otherwise = require("pull-otherwise");
var mainSource = pull.values([1,2,3,4]);
var alternative = pull.values([5,6,7,8,9]);
pull(
mainSource,
otherwise(alternative),
pull.log()
)
install
With npm do:
npm install pull-otherwise
license
MIT