# sum-csv

> Utility that helps you to sum CSV file columns

Latest version **0.0.1** (published 2017-02-17) · GPL-3.0 license · 0 weekly downloads

## Install

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

Provides the command `sum-csv`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-02-17 |
| First published | 2017-02-17 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Andrés Maneiro |
| Maintainers | nosolosw |
| Keywords | csv |

## Links

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

## Dependencies (4)

- [rw](https://npm.io/package/rw.md) ^1.3.3
- [d3-dsv](https://npm.io/package/d3-dsv.md) ^1.0.3
- [d3-array](https://npm.io/package/d3-array.md) ^1.0.2
- [commander](https://npm.io/package/commander.md) ^2.9.0

## Alternatives

- [@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
- [@1selfworld/adchain-sdk-react-native](https://npm.io/package/@1selfworld/adchain-sdk-react-native.md) — 80 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-02-17

## README

# Sum CSV columns

This utility take a CSV file like:

	column1,column2,column3,column4,column5
	2017-02-07,1,2,3,'foo'
	2017-02-08,5,6,7,'bar'
	2017-02-09,1,0,1,'foobar'
	2017-02-10,9,0,0,'barfoo'

an outputs the sum of its columns, ordered by count:

	16, column2
	11, column4
	 8, column3

# How to use it

Install it as a global module:

	npm install -g sum-csv

Use it UNIX-like:

	cat demo.csv | sum-csv --ignore-columns column1,column5

Or as a regular script:

	sum-csv --ignore-columns column1,column5 demo.csv

# Options

`--ignore-columns cols` or `-i cols`:

* Allows you to pass a list of columns to ignore, separated by commas.

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