csv-join

1.0.1 • Public • Published

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

Dependencies (6)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i csv-join

    Weekly Downloads

    23

    Version

    1.0.1

    License

    BSD

    Last publish

    Collaborators

    • groundwater
    • maxogden