csv-parse
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -13,3 +13,3 @@ // Generated by CoffeeScript 1.10.0 | ||
} | ||
records = []; | ||
records = options.objname ? {} : []; | ||
if (data instanceof Buffer) { | ||
@@ -21,3 +21,7 @@ decoder = new StringDecoder(); | ||
parser.push = function(record) { | ||
return records.push(record); | ||
if (options.objname) { | ||
return records[record[0]] = record[1]; | ||
} else { | ||
return records.push(record); | ||
} | ||
}; | ||
@@ -24,0 +28,0 @@ parser.__write(data, false); |
{ | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"name": "csv-parse", | ||
@@ -4,0 +4,0 @@ "description": "CSV parsing implementing the Node.js `stream.Transform` API", |
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
21163
524