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

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.5 to 1.4.6

LICENSE

13

bin.js

@@ -12,8 +12,12 @@ #!/usr/bin/env node

v: 'version',
o: 'output'
o: 'output',
s: 'separator'
},
default: {
s: ','
},
boolean: ['version', 'help']
})
var headers = argv.headers && argv.headers.toString().split(',')
var headers = argv.headers && argv.headers.toString().split(argv.separator)
var filename = argv._[2]

@@ -30,3 +34,4 @@

' --headers,-h Explicitly specify csv headers as a comma separated list\n'+
' --output ,-o Set output file. Defaults to stdout\n'+
' --output,-o Set output file. Defaults to stdout\n'+
' --separator,-s Set the separator character ("," by default)\n'+
' --version,-v Print out the installed version\n'+

@@ -48,2 +53,2 @@ ' --help Show this help\n'

input.pipe(csv({headers:headers})).pipe(ldjson.serialize()).pipe(output)
input.pipe(csv({headers:headers, separator:argv.separator})).pipe(ldjson.serialize()).pipe(output)
{
"name": "csv-parser",
"version": "1.4.5",
"version": "1.4.6",
"description": "Streaming csv parser inspired by binary-csv that aims to be faster than everyone else",

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

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