JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 104649
  • Score
    100M100P100Q161252F
  • License MIT

Fast CSV parser

Package Exports

  • neat-csv

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (neat-csv) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

neat-csv Build Status

Fast CSV parser

Convenience wrapper around he superfast streaming csv-parser module. Use that one if you want streamed parsing.

Install

$ npm install --save neat-csv

Usage

var neatCsv = require('neat-csv');
var csv = 'type,part\nunicorn,horn\nrainbow,pink';

neatCsv(csv, function (err, data) {
    console.log(data);
    //=> [{type: 'unicorn', part: 'horn'}, {type: 'rainbow', part: 'pink'}]
});

API

neatCsv(input, [options], callback)

input

Type: buffer, string, stream

CSV to parse.

options

Type: object

See the csv-parser options.

callback(error, data)

data

Type: array

Parsed CSV.

License

MIT © Sindre Sorhus