CSV for Node.js

IssuesGitHub

CSV API

There are multiple APIs and styles available, each with their own advantages and disadvantages. Under the hood, they are all based on the same implementation.

  • Sync API
    The sync API provides simplicity, readability and convenience. Like for the callback API, it is meant for small dataset which fit in memory.
  • Stream API
    The stream API might not be the most pleasant API to use but is scalable.
  • Callback API
    The callback API buffers all the emitted data from the stream API into a single object which is passed to a user provided function. Passing a function is easier than implementing the stream events function but it implies that the all dataset must fit into the available memory and it will only be available after the last record has been processed. This is usually not recommanded, use the Sync API instead.

For additional usages and examples, you may refer to:

About

The Node.js CSV project is an open source product hosted on GitHub and developed by Adaltas.