Logo

0x5a.live

for different kinds of informations and explorations.

GitHub - sindresorhus/neat-csv: Fast CSV parser

Fast CSV parser. Contribute to sindresorhus/neat-csv development by creating an account on GitHub.

Visit SiteGitHub - sindresorhus/neat-csv: Fast CSV parser

GitHub - sindresorhus/neat-csv: Fast CSV parser

Fast CSV parser. Contribute to sindresorhus/neat-csv development by creating an account on GitHub.

Powered by 0x5a.live ๐Ÿ’—

neat-csv

Fast CSV parser

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

Parsing-related issues should be reported to csv-parser.

Install

npm install neat-csv

Usage

import neatCsv from 'neat-csv';

const csv = 'type,part\nunicorn,horn\nrainbow,pink';

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

API

neatCsv(data, options?)

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

data

Type: string | Buffer | stream.Readable

The CSV data to parse.

options

Type: object

See the csv-parser options.

NodeJS Resources

are all listed below.

Resources

listed to get explored on!!

Made with โค๏ธ

to provide different kinds of informations and resources.