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.0.0 to 2.1.0

8

index.js

@@ -19,2 +19,3 @@ const { Transform } = require('stream')

skipLines: null,
maxRowBytes: Number.MAX_SAFE_INTEGER,
strict: false

@@ -56,2 +57,3 @@ }

this._Row = null
this._currentRowBytes = 0
this._line = 0

@@ -219,2 +221,7 @@

this._currentRowBytes++
if (this._currentRowBytes > this.maxRowBytes) {
return cb(new Error('Row exceeds the maximum size'))
}
if (!this._escaped && chr === this.escape && nextChr === this.quote && i !== start) {

@@ -247,2 +254,3 @@ this._escaped = true

this._prevEnd = i + 1
this._currentRowBytes = 0
}

@@ -249,0 +257,0 @@ }

3

package.json
{
"name": "csv-parser",
"version": "2.0.0",
"version": "2.1.0",
"description": "Streaming CSV parser that aims for maximum speed as well as compatibility with the csv-spectrum test suite",

@@ -35,2 +35,3 @@ "license": "MIT",

"buffer-from": "^1.0.0",
"execa": "^1.0.0",
"generate-function": "^1.0.1",

@@ -37,0 +38,0 @@ "generate-object-property": "^1.0.0",

@@ -220,2 +220,9 @@ [tests]: http://img.shields.io/travis/mafintosh/csv-parser.svg

##### maxRowBytes
Type: `Number`<br>
Default: `Number.MAX_SAFE_INTEGER`
Maximum number of bytes per row. An error is thrown if a line exeeds this value. The default value is on 8 peta byte.
##### strict

@@ -228,8 +235,2 @@

##### skipLines
Type: `Integer`<br>
If provided a line number (integer), skips this number of lines before setting a header.
## Events

@@ -236,0 +237,0 @@

Sorry, the diff of this file is not supported yet

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