0.0.1 • Published 10 years ago

pull-otherwise v0.0.1

Weekly downloads
3
License
-
Repository
github
Last release
10 years ago

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