csv
CSV parser with simple api, full of options and tested against large datasets.
Last updated 7 years ago by david .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install csv 
SYNC missed versions from official npm registry.

CSV for Node.js and the web

Build Status NPM NPM

The csv project provides CSV generation, parsing, transformation and serialization for Node.js.

It has been tested and used by a large community over the years and should be considered reliable. It provides every option you would expect from an advanced CSV parser and stringifier.

This package exposes 4 packages:

Documentation

The full documentation for the current version is available here.

Usage

Installation command is npm install csv.

Each package is fully compatible with the stream 2 and 3 specifications. Also, a simple callback-based API is always provided for convenience.

Sample

This example uses the Stream API to create a processing pipeline.

// Import the package
import * as csv from '../lib/index.js';

// Run the pipeline
csv
// Generate 20 records
  .generate({
    delimiter: '|',
    length: 20
  })
// Transform CSV data into records
  .pipe(csv.parse({
    delimiter: '|'
  }))
// Transform each value into uppercase
  .pipe(csv.transform((record) => {
    return record.map((value) => {
      return value.toUpperCase();
    });
  }))
// Convert objects into a stream
  .pipe(csv.stringify({
    quoted: true
  }))
// Print the CSV stream to stdout
  .pipe(process.stdout);

Development

This parent project doesn't have tests itself but instead delegates the tests to its child projects.

Read the documentation of the child projects for additional information.

Contributors

The project is sponsored by Adaltas, an Big Data consulting firm based in Paris, France.

Related projects

Current Tags

  • 6.2.8                                ...           latest (2 years ago)

85 Versions

  • 6.2.8                                ...           2 years ago
  • 6.2.7                                ...           2 years ago
  • 6.2.6                                ...           2 years ago
  • 6.2.5                                ...           2 years ago
  • 6.2.4                                ...           2 years ago
  • 6.2.3                                ...           2 years ago
  • 6.2.2                                ...           2 years ago
  • 6.2.1                                ...           2 years ago
  • 6.2.0                                ...           2 years ago
  • 6.1.5                                ...           2 years ago
  • 6.1.4                                ...           2 years ago
  • 6.1.3                                ...           2 years ago
  • 6.1.2                                ...           2 years ago
  • 6.1.1                                ...           2 years ago
  • 6.1.0                                ...           3 years ago
  • 6.0.5                                ...           3 years ago
  • 6.0.4                                ...           3 years ago
  • 6.0.3                                ...           3 years ago
  • 6.0.2                                ...           3 years ago
  • 6.0.1                                ...           3 years ago
  • 6.0.0                                ...           3 years ago
  • 5.5.3                                ...           3 years ago
  • 5.5.2                                ...           3 years ago
  • 5.5.0                                ...           4 years ago
  • 5.4.0                                ...           4 years ago
  • 5.3.2                                ...           5 years ago
  • 5.3.1                                ...           5 years ago
  • 5.3.0                                ...           5 years ago
  • 5.2.0                                ...           5 years ago
  • 5.1.3                                ...           5 years ago
  • 5.1.2                                ...           5 years ago
  • 5.1.1                                ...           6 years ago
  • 5.1.0                                ...           6 years ago
  • 5.0.1                                ...           6 years ago
  • 5.0.0                                ...           6 years ago
  • 4.0.0                                ...           6 years ago
  • 3.1.0                                ...           7 years ago
  • 3.0.2                                ...           7 years ago
  • 3.0.1                                ...           7 years ago
  • 3.0.0                                ...           7 years ago
  • 2.0.0                                ...           7 years ago
  • 1.2.1                                ...           7 years ago
  • 1.2.0                                ...           7 years ago
  • 1.1.1                                ...           8 years ago
  • 1.1.0                                ...           9 years ago
  • 0.4.6                                ...           9 years ago
  • 0.4.5                                ...           10 years ago
  • 0.4.4                                ...           10 years ago
  • 0.4.2                                ...           10 years ago
  • 0.4.1                                ...           10 years ago
  • 0.4.0                                ...           11 years ago
  • 0.3.7                                ...           11 years ago
  • 0.3.6                                ...           11 years ago
  • 0.3.5                                ...           11 years ago
  • 0.3.4                                ...           11 years ago
  • 0.3.3                                ...           11 years ago
  • 0.3.2                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.9                                ...           12 years ago
  • 0.2.8                                ...           12 years ago
  • 0.2.7                                ...           12 years ago
  • 0.2.6                                ...           12 years ago
  • 0.2.4                                ...           12 years ago
  • 0.1.0                                ...           12 years ago
  • 0.2.3                                ...           12 years ago
  • 0.2.2                                ...           12 years ago
  • 0.2.1                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.0.19                                ...           12 years ago
  • 0.0.18                                ...           12 years ago
  • 0.0.17                                ...           12 years ago
  • 0.0.16                                ...           12 years ago
  • 0.0.15                                ...           12 years ago
  • 0.0.14                                ...           12 years ago
  • 0.0.13                                ...           13 years ago
  • 0.0.12                                ...           13 years ago
  • 0.0.11                                ...           13 years ago
  • 0.0.10                                ...           13 years ago
  • 0.0.9                                ...           14 years ago
  • 0.0.7                                ...           14 years ago
  • 0.0.6                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
  • 0.0.2                                ...           14 years ago
  • 0.0.5                                ...           14 years ago
  • 0.0.3                                ...           14 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |