Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    neat-csvpublic

    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 --save neat-csv
    

    Usage

    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'}]
    });

    API

    neatCsv(input, [options])

    Returns a promise for an array with the parsed CSV.

    input

    Type: buffer, string, stream

    CSV to parse.

    options

    Type: object

    See the csv-parser options.

    License

    MIT © Sindre Sorhus

    install

    npm i neat-csv

    Downloadsweekly downloads

    15,235

    version

    2.1.0

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar