stream-transform
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -58,3 +58,3 @@ // Generated by CoffeeScript 1.9.2 | ||
} | ||
if (callback) { | ||
if (callback || options.consume) { | ||
result = []; | ||
@@ -71,6 +71,8 @@ transform.on('readable', function() { | ||
error = true; | ||
return callback(err); | ||
if (callback) { | ||
return callback(err); | ||
} | ||
}); | ||
transform.on('end', function() { | ||
if (!error) { | ||
if (callback && !error) { | ||
return callback(null, result); | ||
@@ -77,0 +79,0 @@ } |
{ | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"name": "stream-transform", | ||
@@ -4,0 +4,0 @@ "description": "Object transformations implementing the Node.js `stream.Transform` API", |
[![Build Status](https://secure.travis-ci.org/wdavidw/node-csv-parse.png)][travis] | ||
Part of the [CSV module][csv_home], this project is a simple object | ||
transformation framework. It implements the Node.js | ||
[`stream.Transform` API][stream_transform]. It also provides a simple | ||
callback-based API for convenience. It is both extremely easy to use and | ||
powerful. | ||
transformation framework. It implements the Node.js [`stream.Transform` API][streamtransform]. | ||
It also provides a simple callback-based API for convenience. | ||
It is both extremely easy to use and powerful. | ||
@@ -9,0 +8,0 @@ [Documentation for the "csv-parse" package is available here][home]. |
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
9899
209
65