node package manager

csv-join

csv-join

join two cavs based on a "foreign key" relationship

NPM

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>

sourceand 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,,,