Projetos
Ver no GitHub
sindresorhus/neat-csv
Sobre
Fast CSV parser
Ferramentas de desenvolvimentoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
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.
Explore projetos relacionados
Carregando…