Comprehensive CSV suite combining 4 well tested packages to generate, parse, transform and stringify CSV data.


NPM version Travis build status

Write random and user-defined strings, objects and arrays


NPM version Travis build status

Read CSV strings and buffers and write object and arrays


NPM version Travis build status

Read and write objects and arrays


NPM version Travis build status

Read object and arrays and write CSV strings

Latest news

CSV 5.0.0

By wdavidw | November 21th, 2018

Version 5.0.0 includes the latest csv-parse and csv-stringify respectively with version 4.0.1 and 5.0.0.

CSV Stringify 5.0.0

By wdavidw | November 21th, 2018

Version 5.0.0 introduces the new quoted_match option and support options written both in the underscore and camelcase forms. Some options were renamed. Thus rowDelimiter is now record_delimiter and formatters is now cast. Read the changelog!

CSV Parse 4.0.0 - re-writing and performance

By wdavidw | November 19th, 2018

Version 4.0.0 is a complete re-writing of the project focusing on performance. It also comes with new functionalities as well as some cleanup in the option properties and the exported information. The official website is updated and the changelog contains the list of changes for this major release. Learn more!

Quick Example

// Import the package main module
const csv = require('csv')
// Use the module
// Generate 20 records
  delimiter: '|',
  length: 20
// Parse the records
  delimiter: '|'
// Transform each value into uppercase
     return value.toUpperCase()
// Convert the object into a stream
  quoted: true
// Print the CSV stream to stdout