# @uelstudios/simple-csv-parser

> Parse csv data

Latest version **1.0.0** (published 2019-11-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install @uelstudios/simple-csv-parser
pnpm add @uelstudios/simple-csv-parser
yarn add @uelstudios/simple-csv-parser
bun add @uelstudios/simple-csv-parser
```

## 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 | 2019-11-14 |
| First published | 2019-11-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul von Allwörden |
| Maintainers | uelstudios |
| Keywords | csv |

## Links

- npm: https://www.npmjs.com/package/@uelstudios/simple-csv-parser
- Repository: https://github.com/Uelstudios/csv-parser
- Homepage: https://github.com/Uelstudios/csv-parser#readme
- Issues: https://github.com/Uelstudios/csv-parser/issues
- npm.io page: https://npm.io/package/@uelstudios/simple-csv-parser

## 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) — 2019-11-14

## README

# Javascript CSV Parser
Parse csv content with a small module that requires no additional dependencies.

## How to use
Install with 
`
npm install @uelstudios/csv-parser
`

In your code

`
const csvParser = require("@uelstudios/csv-parser");
const rows = csvParser.parse(<CSV DATA>);

// Row: 2 (thrid row)<br/>
// Column: 3 (fourth column)<br/>
console.log(rows[2][3]);
`

## Example
`
// Read file and print to console\
const fs = require("fs");\
const csvParser = require("@uelstudios/csv-parser");

// Read file\
const content = fs.readFileSync("path/to/file.csv", { encoding: "utf-8" });

// Parse and log\
const rows = csvParser.parse(content);\
rows.forEach(row => logRow(row));

// Function to print row\
function logRow(row) {
    console.log(row.join("\t\t"));
}
`

## Supported Types
- string
- number
- boolean

## Known Issues
- The parse may not detect if the number of columns is constant.
- The parser may not check for equal cell types across rows.
- The parser may not check for a header.

## Author
Paul von Allwörden

### License
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar
14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

1. You just DO WHAT THE FUCK YOU WANT TO.

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