Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

csv-parser

Package Overview
Dependencies
Maintainers
3
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv-parser - npm Package Compare versions

Comparing version 2.3.1 to 2.3.2

2

index.js

@@ -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 @@ ...

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc