# ts-csv

> TypeScript CSV parser, based on the Python csv library.

Latest version **1.0.0** (published 2020-06-26) · MIT license · 0 weekly downloads

## Install

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

## 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.0.0 |
| Published | 2020-06-26 |
| First published | 2020-06-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Lindquist |
| Maintainers | lindq |
| Keywords | typescript, csv |

## Links

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

## 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.0.0 (latest) — 2020-06-26

## README

# ts-csv

A TypeScript CSV reader/writer based on the CPython implementation.

## Usage

### Reading

```
[...reader(csv)];  // [['header 1', 'header 2'], ['value1', 'value2']]
[...recordReader(csv)];  // [{'header 1': 'value1', 'header 2': 'value2'}]
```

### Writing

```
[...writer(rows)].join('');  // "header 1,header 2\r\nvalue1,value2\r\n"
[...recordWriter(rowObjs)].join('');
```

See code comments and tests for more options and examples.

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