nk-csv-stream

1.0.0 • Public • Published

nk-csv-stream

Load and parse a CSV file.

Install

With npm do:

$ npm install nk-csv-stream --save-dev

Usage

var CsvStream = require('nk-csv-stream');
var stream = new CsvStream();
 
stream.on('data', function(row, head) {
  if (head) return;
 
  // Do something with the row.
});
 
stream.once('end', function() {
  stream.dispose();
});
 
stream.open('https://url.com/to/file.csv');

API

.open(url)

.dispose()

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i nk-csv-stream

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • kewah