1.0.1 • Published 7 years ago

csv-reduce v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 years ago

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
1.0.1

7 years ago

1.0.0

7 years ago