pull-stream
Advanced tools
Comparing version 2.21.0 to 2.22.0
@@ -70,4 +70,20 @@ # Sources | ||
[pushable](https://github.com/dominictarr/pull-pushable) | ||
Create a false source stream with a `.push(data, cb?)` | ||
property. Use when you really need a push api, | ||
or need to adapt pull-stream to some other push api. | ||
``` js | ||
function ls (dir) { | ||
var ps = pull.pushable() | ||
fs.readdir(dir, function (err, ls) { | ||
if(err) return ps.end(err) | ||
ls.forEach(function (file) { | ||
ps.push(path.resolve(dir, file)) | ||
}) | ||
ps.end() | ||
}) | ||
return ps | ||
} | ||
``` | ||
## depthFirst, widthFirst, leafFirst (start, createStream) | ||
@@ -74,0 +90,0 @@ |
{ | ||
"name": "pull-stream", | ||
"description": "minimal pull stream", | ||
"version": "2.21.0", | ||
"version": "2.22.0", | ||
"homepage": "https://github.com/dominictarr/pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
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
91681
63
2526
2