@csv-streamy/cli
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@csv-streamy/cli

npm version CI codecov License: MIT

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

Package Sidebar

Install

npm i @csv-streamy/cli

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

10.7 kB

Total Files

10

Last publish

Collaborators

  • keidrun