Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pull-stream

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-stream - npm Package Compare versions

Comparing version 2.21.0 to 2.22.0

p

18

docs/sources.md

@@ -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 @@

2

package.json
{
"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": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc