Socket
Socket
Sign inDemoInstall

concat-stream

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

concat-stream - npm Package Compare versions

Comparing version 1.0.1 to 1.1.0

LICENSE

2

index.js

@@ -18,2 +18,3 @@ var stream = require('stream')

ConcatStream.prototype.write = function(chunk) {
this.emit('data', chunk)
this.body.push(chunk)

@@ -43,2 +44,3 @@ }

ConcatStream.prototype.end = function() {
this.emit('end')
if (this.cb) this.cb(this.getBody())

@@ -45,0 +47,0 @@ }

4

package.json

@@ -10,3 +10,3 @@ {

],
"version": "1.0.1",
"version": "1.1.0",
"author": "Max Ogden <max@maxogden.com>",

@@ -27,3 +27,3 @@ "repository": {

},
"license": "BSD",
"license": "MIT",
"dependencies": {

@@ -30,0 +30,0 @@ "bops": "0.0.6"

@@ -35,1 +35,11 @@ var spawn = require('child_process').spawn

strings.end()
// reemit
var emitter = concat()
var receiver = concat(function (out) {
console.log('strings', out)
})
emitter.pipe(receiver)
emitter.write('pizza')
emitter.write(' is dope')
emitter.end()
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