Socket
Socket
Sign inDemoInstall

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.14.1 to 2.15.0

test/collect.js

15

docs/sources.md

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

2

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

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