csv-reduce

1.0.1 • Public • Published

csv-reduce

Application for generating CSV data with subset of columns from a CSV file.

Installation

npm i -g csv-reduce

Arguments

--in, -i (required) path to input file

--fields, -f (required) comma separated list of fields from the input file that should be extracted

--out, -o path to output file, if not given data will be sent to stdout

--verbose whether to print verbose info

Example

Input file: in.csv

a,b,c
1,2,3
4,5,6
csv-reduce --in ./in.csv --fields a,c --out ./out.csv

Output file: out.csv

a,c
1,3
4,6

Package Sidebar

Install

npm i csv-reduce

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.77 kB

Total Files

5

Last publish

Collaborators

  • bam