join-csv
Join CSV allows to join multiple CSV files in order, removing duplicated rows.
Installation
yarn add join-csv # or npm install join-csv
Usage
join
Joins an array of csv strings, duplicated rows are removed, remaining the ones that appeared early
; const csv1 = `name,pricejuice,1000ice cream,2000coffee,300`; const csv2 = `name,pricecoffee,300ice,600something,20000`; console;`name,pricejuice,1000ice cream,2000coffee,300ice,600something,20000`;
joinFiles
Same as join but takes an array of paths to the csv files
joinFilesWithOutput
Same as joinFiles but takes a second parameter that specifies a path to save the result of the join