Fast CSV parser
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

neat-csv Build Status

Fast CSV parser

Convenience wrapper around the super-fast streaming csv-parser module. Use that one if you want streamed parsing.

Install

$ npm install neat-csv

Usage

const neatCsv = require('neat-csv');
const csv = 'type,part\nunicorn,horn\nrainbow,pink';

(async () => {
	console.log(await neatCsv(csv));
	//=> [{type: 'unicorn', part: 'horn'}, {type: 'rainbow', part: 'pink'}]
})();

API

neatCsv(input, [options])

Returns a Promise<Object[]> with the parsed CSV.

input

Type: string Buffer Stream

CSV to parse.

options

Type: Object

See the csv-parser options.

License

MIT © Sindre Sorhus