csv-string
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -136,4 +136,12 @@ 'use strict'; | ||
var rows = csv.File(); | ||
var ret = 0; | ||
if (csv.pointer < input.length) { | ||
ret = csv.pointer; | ||
} | ||
else { | ||
rows.pop(); | ||
ret = csv.linePointer; | ||
} | ||
callback(rows); | ||
return csv.pointer; | ||
return ret; | ||
} | ||
@@ -140,0 +148,0 @@ |
{ | ||
"name": "csv-string", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"author": "Nicolas Thouvenin <nthouvenin@gmail.com>", | ||
@@ -42,4 +42,4 @@ "contributors": [ | ||
"engines": { | ||
"node": ">=0.6.0" | ||
"node": ">=0.10.0" | ||
} | ||
} |
@@ -160,7 +160,4 @@ # Javascript CSV Strings | ||
stream.on('data', function (rows) { | ||
rows.forEach(function (item) { | ||
process.stdout.write(CSV.stringify(item)); | ||
} | ||
); | ||
stream.on('data', function (row) { | ||
console.log(row); | ||
} | ||
@@ -167,0 +164,0 @@ ) |
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
26137
725
221