csv-join
v1.0.1
Published
join two csvs based on a 'foreign key' column
Downloads
91
Readme
csv-join
join two cavs based on a "foreign key" relationship
note: source.csv
gets buffered into memory in the current implementation. a purely streaming version would be cool. if you have ideas for this open an issue!
usage
csv-join <source> <source-column> <target> <target-column>
source
and target
can be either paths to local files or http/https links
example
given the following:
source.csv
:
a,b,c
1,2,3
target.csv
:
id,name
1,bob
2,bill
3,carl
then running csv-join source.csv 'a' target.csv 'id'
would result in:
id,name,a,b,c
1,bob,1,2,3
2,bill,,,
3,carl,,,