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

stream-to-pull-stream

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stream-to-pull-stream - npm Package Compare versions

Comparing version 1.4.1 to 1.5.0

7

index.js

@@ -181,2 +181,7 @@ var pull = require('pull-core')

exports.read2 = read2
exports.duplex = function (stream) {
return {
source: source(stream),
sink: sink(stream)
}
}

2

package.json
{
"name": "stream-to-pull-stream",
"description": "convert a stream1 or streams2 stream into a pull-stream",
"version": "1.4.1",
"version": "1.5.0",
"homepage": "https://github.com/dominictarr/stream-to-pull-stream",

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

@@ -9,9 +9,9 @@ # stream-to-pull-stream

``` js
var toPullStream = require('stream-to-pull-stream')
var toPull = require('stream-to-pull-stream')
var pull = require('pull-stream')
pull(
toPullStream.source(fs.createReadStream(__filename)),
toPull.source(fs.createReadStream(__filename)),
pull.map(function (e) { return e.toString().toUpperCase() }),
toPullStream.sink(process.stdout, function (err) {
toPull.sink(process.stdout, function (err) {
if(err) throw err

@@ -23,4 +23,6 @@ console.log('done')

if the node steam is a duplex (i.e. net, ws) then use `toPull.duplex(stream)`
## 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