0.0.2 • Published 7 years ago

csv-lookup v0.0.2

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

csv-lookup

csv-lookup is a Node.js command line app that adds or replaces a column value in a source CSV file by looking up a value in a lookup CSV file.

Install

npm i -g csv-lookup

Enjoy

The following replaces the PersonId column in source.csv with the value of the Name column in lookup.csv where PersonId from source matches Id from lookup.

csv-lookup.js -s PersonId \\
  -l lookup.csv -k Id -v Name \\
  < source.csv \\
  > output.csv

For extended help, type the command name with no arguments.

You can optionally add a column to the source.csv instead of replacing the value of the column.

You can also optionally remove rows where there is no match.

0.0.2

7 years ago

0.0.1

7 years ago

0.0.0

7 years ago