You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
dydwang 50927eb4cf 启动vsplayer预览海康视频 4 years ago
..
index.d.ts 启动vsplayer预览海康视频 4 years ago
index.js 启动vsplayer预览海康视频 4 years ago
license 启动vsplayer预览海康视频 4 years ago
package.json 启动vsplayer预览海康视频 4 years ago
readme.md 启动vsplayer预览海康视频 4 years ago

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(data, options?)

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

data

Type: string | Buffer | stream.Readable

CSV data to parse.

options

Type: object

See the csv-parser options.