p-csv-parser

1.0.2 • Public • Published

p-csv-parser

Build Status

A simple and blazing fast csv parser, promisified.

Table of contents

Installation

$ npm install --save p-csv-parser

Or if you prefer yarn:

$ yarn add p-csv-parser

Usage

const csvParser = require('p-csv-parser');
 
csvParser(csvString)
  .then(results => console.log(results)); // Array of rows as objects
 

API

csvParser(csvString, options)

  • csvString String (required) - The csv content to parse
  • options Object (optional)
    • headers Boolean|Array - If true, the first line of csvString is parsed as headers, else use the array. Default: true
    • delimiter String - Set the field delimiter, Default: ","

Development

$ npm test

Changelog

  • 1.0.2
    • Fix error with large files. Tested with file containing roundabout 155000 lines
  • 1.0.1
    • Fix module error
  • 1.0.0
    • Initial Release

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i p-csv-parser

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • sydev