0.1.2 • Published 12 years ago

csv2json-stream v0.1.2

Weekly downloads
3
License
-
Repository
github
Last release
12 years ago

csv2json

csv file to json array - streaming

Optional Parameter: Pass an object

delim => delimiter used

\t for tab delimited file

, for comma delimited file, will take care of double quoted values as well.

var fs = require('fs');
var csv2json = require('./index.js');

var opts = {
  // delim : '\t'
  delim : ',',
  columns: ['Column1', 'Column2', 'Column3']
};

fs.createReadStream('csv.csv').pipe(csv2json(opts)).pipe(fs.createWriteStream('csv.json'));

You can also run the basic test:

node /test
0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago

0.0.5

12 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago