Bolshakova Anna ab21a11190 lab | 3 weeks ago | |
---|---|---|
.. | ||
node_modules | 3 weeks ago | |
index.js | 3 weeks ago | |
license | 3 weeks ago | |
package.json | 3 weeks ago | |
readme.md | 3 weeks ago |
Fast CSV parser
Convenience wrapper around the super-fast streaming csv-parser
module. Use that one if you want streamed parsing.
$ npm install --save neat-csv
const neatCsv = require('neat-csv');
const csv = 'type,part\nunicorn,horn\nrainbow,pink';
neatCsv(csv).then(data => {
console.log(data);
//=> [{type: 'unicorn', part: 'horn'}, {type: 'rainbow', part: 'pink'}]
});
Returns a promise for an array with the parsed CSV.
Type: buffer
, string
, stream
CSV to parse.
Type: object
See the csv-parser
options.
MIT © Sindre Sorhus