csv-parse
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -61,3 +61,3 @@ // Generated by CoffeeScript 1.7.1 | ||
}); | ||
parser.on('finish', function() { | ||
parser.on('end', function() { | ||
if (!called) { | ||
@@ -64,0 +64,0 @@ return callback(null, chunks); |
{ | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"name": "csv-parse", | ||
@@ -4,0 +4,0 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API", |
@@ -119,3 +119,3 @@ [![Build Status](https://secure.travis-ci.org/wdavidw/node-csv-parse.png)](http://travis-ci.org/wdavidw/node-csv-parse) | ||
* `rowDelimiter` String used to delimit record rows or a special value; special values are 'auto', 'unix', 'mac', 'windows', 'unicode'; defaults to 'auto' (discovered in source or 'unix' if no source is specified). | ||
* `quote` Optionnal character surrounding a field, one character only, defaults to double quotes. | ||
* `quote` Optional character surrounding a field, one character only, defaults to double quotes. | ||
* `escape` Set the escape character, one character only, defaults to double quotes. | ||
@@ -122,0 +122,0 @@ * `columns` List of fields as an array, a user defined callback accepting the first line and returning the column names or true if autodiscovered in the first CSV line, default to null, affect the result data set in the sense that records will be objects instead of arrays. |
@@ -6,3 +6,2 @@ | ||
var output = []; | ||
var parser = parse({delimiter: ':'}) | ||
@@ -9,0 +8,0 @@ var input = fs.createReadStream('/etc/passwd'); |
@@ -66,3 +66,3 @@ | ||
callback err | ||
parser.on 'finish', -> | ||
parser.on 'end', -> | ||
callback null, chunks unless called | ||
@@ -69,0 +69,0 @@ parser |
Sorry, the diff of this file is not supported yet
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
63913
398