csv-parser
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -164,3 +164,3 @@ const { Transform } = require('stream') | ||
if (this.options.strict && cells.length !== this.headers.length) { | ||
if (!skip && this.options.strict && cells.length !== this.headers.length) { | ||
const e = new RangeError('Row length does not match headers') | ||
@@ -167,0 +167,0 @@ this.emit('error', e) |
{ | ||
"name": "csv-parser", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Streaming CSV parser that aims for maximum speed as well as compatibility with the csv-spectrum test suite", | ||
@@ -57,3 +57,3 @@ "license": "MIT", | ||
"eslint-plugin-standard": "^4.0.0", | ||
"execa": "^2.0.4", | ||
"execa": "^2.1.0", | ||
"globby": "^10.0.1", | ||
@@ -60,0 +60,0 @@ "husky": "^3.0.0", |
@@ -165,2 +165,4 @@ [tests]: http://img.shields.io/travis/mafintosh/csv-parser.svg | ||
_Note: If using the `headers` for an operation on a file which contains headers on the first line, specify `skipLines: 1` to skip over the row, or the headers row will appear as normal row data. Alternatively, use the `mapHeaders` option to manipulate existing headers in that scenario._ | ||
#### mapHeaders | ||
@@ -338,3 +340,3 @@ | ||
fs.createReadStream('data.csv') | ||
.pipe(stripBomStream()) | ||
.pipe(stripBom()) | ||
.pipe(csv()) | ||
@@ -341,0 +343,0 @@ ... |
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
27392
355