Socket
Socket
Sign inDemoInstall

csv-parser

Package Overview
Dependencies
Maintainers
2
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 1.4.4 to 1.4.5

2

index.js

@@ -37,2 +37,4 @@ var stream = require('stream')

Parser.prototype._transform = function(data, enc, cb) {
if (typeof data === 'string') data = new Buffer(data)
var start = 0

@@ -39,0 +41,0 @@ var buf = data

2

package.json
{
"name": "csv-parser",
"version": "1.4.4",
"version": "1.4.5",
"description": "Streaming csv parser inspired by binary-csv that aims to be faster than everyone else",

@@ -5,0 +5,0 @@ "repository": "mafintosh/csv-parser",

@@ -21,2 +21,15 @@ var test = require('tape')

test('supports strings', function(t) {
var parser = csv()
parser.on('data', function(data) {
t.same(data, {hello:'world'})
t.end()
})
parser.write('hello\n')
parser.write('world\n')
parser.end()
})
test('newlines in a cell', function(t) {

@@ -23,0 +36,0 @@ collect('newlines.csv', verify)

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