@csv-streamy/cli
v1.1.1
Published
Command line tool to handle a csv file.
Downloads
6
Readme
@csv-streamy/cli
CSV Streamy Cli - Command line tool to handle a csv file.
Install
npm i -g @csv-streamy/cli
Usage
$ csv help
Usage: csv [options] [command]
Command line tool to handle a csv file.
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
split [options] split a csv file into pieces
help [command] display help for command
Split a csv file into pieces
$ csv help split
Usage: csv split [options]
split a csv file into pieces
Options:
-f, --file <PATH> a csv file path
-h, --headers if an input file has headers row
-d, --double-quotes if fields are enclosed in double-quotes
-r, --rows <NUMBER> NUMBER rows per an output file
-b, --bytes <SIZE> SIZE bytes per an output file
-x, --extension whether to add an extension to each output file
-o, --output-dir <PATH> an output directory path
-v, --verbose print a diagnostic just before each output file is opened
--help display help for command
Examples
# When you want to split your csv file per 10 rows
$ csv split -f input.csv -o out -h -d -x -r 10
# When you want to split your csv file per 1K bytes except the size of headers
$ csv split -f input.csv -o out -h -d -x -b 1K