JackHQ

1 note

csv2json - csv to json streaming node module

Announcing csv2json a csv to json streaming node module. Using event-stream, it is super simple to convert a function into a stream.

var = require('event-stream');

// through stream
es.map(function(data, callback) {
   /* do stuff */
   callback(null, data);
});

Using event-stream, I was able to create a csv to json streaming module with a very little amount of code. Check it out -> https://github.com/twilson63/node-csv2json

npm install csv2json

Filed under nodejs coffeescript csv json csv2json

  1. jackhq posted this