pull-stream
Advanced tools
Comparing version 2.14.1 to 2.15.0
@@ -57,4 +57,15 @@ # Sources | ||
### pushable | ||
## empty | ||
A stream with no contents (it just ends immediately) | ||
``` js | ||
pull.empty().pipe(pull.collect(function (err, ary) { | ||
console.log(arg) | ||
// ==> [] | ||
}) | ||
``` | ||
## pushable | ||
Create a false source stream with a `.push(data, cb?)` | ||
@@ -78,3 +89,3 @@ property. Use when you really need a push api, | ||
### depthFirst, widthFirst, leafFirst (start, createStream) | ||
## depthFirst, widthFirst, leafFirst (start, createStream) | ||
@@ -81,0 +92,0 @@ Traverse a tree structure. `start` is a value that represents |
{ | ||
"name": "pull-stream", | ||
"description": "minimal pull stream", | ||
"version": "2.14.1", | ||
"version": "2.15.0", | ||
"homepage": "https://github.com/dominictarr/pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -67,2 +67,8 @@ | ||
var empty = exports.empty = function () { | ||
return function (abort, cb) { | ||
cb(true) | ||
} | ||
} | ||
var depthFirst = exports.depthFirst = | ||
@@ -69,0 +75,0 @@ function (start, createStream) { |
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
35321
26
952