# join-csv

> Join CSV allows to join multiple CSV files in order, removing duplicated rows.

Latest version **0.1.8** (published 2020-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install join-csv
pnpm add join-csv
yarn add join-csv
bun add join-csv
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.8 |
| Published | 2020-01-13 |
| First published | 2020-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 516.7 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | julionav |
| Keywords | BuckleScript |

## Links

- npm: https://www.npmjs.com/package/join-csv
- npm.io page: https://npm.io/package/join-csv

## Dependencies (3)

- [csv-parse](https://npm.io/package/csv-parse.md) ^4.8.3
- [bs-platform](https://npm.io/package/bs-platform.md) ^7.0.1
- [csv-stringify](https://npm.io/package/csv-stringify.md) ^5.3.6

## Recent versions

- 0.1.8 (latest) — 2020-01-13
- 0.1.7 — 2020-01-13
- 0.1.6 — 2020-01-13
- 0.1.5 — 2020-01-13
- 0.1.4 — 2020-01-12
- 0.1.3 — 2020-01-12
- 0.1.2 — 2020-01-12
- 0.1.1 — 2020-01-12
- 0.1.0 — 2020-01-12

## README

# join-csv

Join CSV allows to join multiple CSV files in order, removing duplicated rows.

# Installation

```sh
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

```js
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

---
_Source: https://npm.io/package/join-csv · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
