Proyectos
Ver en GitHub
sindresorhus/neat-csv
Acerca de
Fast CSV parser
Herramientas de desarrolloCrecimiento de estrellas medido
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Recopilando historial
Cambios netos en períodos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interés, no calidad.
README.md
Originalneat-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.
Explorar proyectos relacionados
Cargando…