csv-parser
Advanced tools
Comparing version 1.4.5 to 1.4.6
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", |
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
No License Found
License(Experimental) License information could not be found.
Found 1 instance in 1 package
15251
21
0
390