# csv-manipulation-tool

> Tool for manipulating CSV-files (merging, distinct, ++).

Latest version **1.1.6** (published 2016-11-12) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install csv-manipulation-tool
pnpm add csv-manipulation-tool
yarn add csv-manipulation-tool
bun add csv-manipulation-tool
```

Provides the command `csv-manipulation-tool`.

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.6 |
| Published | 2016-11-12 |
| First published | 2016-11-11 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Erlend Ellingsen |
| Maintainers | erlendftw |
| Keywords | csv, merge, distinct, tool |

## Links

- npm: https://www.npmjs.com/package/csv-manipulation-tool
- Repository: https://github.com/EllarDevelopment/csv-manipulation-tool
- Homepage: https://github.com/EllarDevelopment/csv-manipulation-tool#readme
- Issues: https://github.com/EllarDevelopment/csv-manipulation-tool/issues
- npm.io page: https://npm.io/package/csv-manipulation-tool

## Dependencies (3)

- [flags](https://npm.io/package/flags.md) ^0.1.3
- [colors](https://npm.io/package/colors.md) ^1.1.2
- [email-validator](https://npm.io/package/email-validator.md) ^1.0.7

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 1.1.6 (latest) — 2016-11-12
- 1.1.5 — 2016-11-12
- 1.1.0 — 2016-11-12
- 1.0.0 — 2016-11-11

## README

#csv-manipulation-tool
A CSV-manipulation tool developed at **Ellar Development** for managing e-mail lists for our web-game [Nordicmafia](http://nordicmafia.org).

This tool is probably not compatible with most CSV-lists, and are primarly a tool for merging and subtracting emails from CSV's. 

The tool works by taking a csv-document ("**source**") and another one ("**input**") and compare them to eachother (performing adjustments). 

The source-document should only consist of one field, with header title "*email*".

*Please read the code for better understanding.*

##Installation
`npm install csv-manipulation-tool`

##Options (flags)
| Flag         | Short | Description     | Default value  |
| ------------| -----|---------------| ------|
| --source     | --s | Source-CSV file | null (required) |
| --input      | --i | Input-CSV file | null (required unless action is "validate", only source is required then) |
| --output     | --o | Output-CSV file | null (required) |
| --target     | --t | Input-CSV target header title | "email" |
| --action     | --a | Action to perform. (join, subtract, validate) | "join" |
| *--avoid_lowercase*      | *None* | If present, prevents lowercase preparation | Not present, only include to disable lowercase |


##Example usage
###Merge two lists of emails
```
	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--i="csvfiles/input.csv"
		--o="csvfiles/output/output.csv"
		--a="join"
```

###Subtract a list from another (e.g. bounces, invalid)
```
	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--i="csvfiles/input.csv"
		--o="csvfiles/output/output.csv"
		--a="subtract"
```


###Clean a list of emails 
```
	csv-manipluaton-tool
		--s="csvfiles/source.csv"
		--o="csvfiles/output/output.csv"
		--a="validate"
```

##Contribution
Just create a fork and make adjustments. If you think your edits bring additional value, then please consider creating a *pull request*.

##License
Licensed under *Apache-2.0*. See `LICENSE`

Copyright Ellar Development AS

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