0.1.8 • Published 4 years ago

join-csv v0.1.8

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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

import { join, joinFiles, joinFilesWithOutput } from "join-csv";

const csv1 = `name,price
juice,1000
ice cream,2000
coffee,300`;

const csv2 = `name,price
coffee,300
ice,600
something,20000`;

console.log(join([csv1, csv2]));
`name,price
juice,1000
ice cream,2000
coffee,300
ice,600
something,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

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

1.0.0

5 years ago