concat-stream
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -29,5 +29,3 @@ var stream = require('stream') | ||
ConcatStream.prototype.isArray = function(arr) { | ||
var isArray = Array.isArray(arr) | ||
var isTypedArray = arr.toString().match(/Array/) | ||
return isArray || isTypedArray | ||
return Array.isArray(arr) | ||
} | ||
@@ -34,0 +32,0 @@ |
{ "name" : "concat-stream" | ||
, "description" : "writable stream that concatenates strings or data and calls a callback with the result" | ||
, "tags" : ["stream", "simple", "util", "utility"] | ||
, "version" : "0.1.0" | ||
, "version" : "0.1.1" | ||
, "author" : "Max Ogden <max@maxogden.com>" | ||
@@ -6,0 +6,0 @@ , "repository" : |
@@ -22,6 +22,6 @@ var spawn = require('child_process').spawn | ||
var buffers = concat(function(err, out) { | ||
console.log('buffers', err, out) | ||
console.log('buffers', err, out.toString()) | ||
}) | ||
buffers.write(new Buffer('pizza ')) | ||
buffers.write(new Buffer('cats')) | ||
buffers.write(new Buffer('pizza Array is not a ', 'utf8')) | ||
buffers.write(new Buffer('stringy cat')) | ||
buffers.end() | ||
@@ -28,0 +28,0 @@ |
3199
70