concat-stream
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -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 @@ } |
@@ -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" |
10
test.js
@@ -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() |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Misc. License Issues
License(Experimental) A package's licensing information has fine-grained problems.
Found 1 instance in 1 package
4572
6
0
80