git ssb

2+

Dominic / pull-stream



Tree: cf6dae10be15f44c4b87eef420bdf7b98fdee233

Files: cf6dae10be15f44c4b87eef420bdf7b98fdee233 / docs / throughs / take.md

390 bytesRaw

pull-stream/throughs/take

usage

take = require('pull-stream/throughs/take')

take(test [, opts])

If test is a function, read data from the source stream and forward it downstream until test(data) returns false.

If opts.last is set to true, the data for which the test failed will be included in what is forwarded.

If test is an integer, take n item from the source.

Built with git-ssb-web