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

pull-pushable

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pull-pushable - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

2

package.json
{
"name": "pull-pushable",
"description": "pull-stream with a push interface",
"version": "1.1.3",
"version": "1.1.4",
"homepage": "https://github.com/dominictarr/pull-pushable",

@@ -6,0 +6,0 @@ "repository": {

@@ -15,5 +15,28 @@ # pull-pushable

```
```
## Example 2
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
}
```
```
## License
MIT
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