プロジェクト
GitHubで見る
sindresorhus/neat-csv
概要
Fast CSV parser
開発ツール計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナル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.
関連プロジェクトを探す
読み込み中…