jsoncsv

A JSON to csv converter for nodeJS

    __                                               
   |__|  ______ ____    ____    ____    _________  __
   |  | /  ___//  _ \  /    \ _/ ___\  /  ___/\  \/ /
   |  | \___ \(  <_> )|   |  \\  \___  \___ \  \   / 
/\__|  |/____  >\____/ |___|  / \___  >/____  >  \_/  
\______|     \/             \/      \/      \/        

jsoncsv

  • a json to csv library in javascript/coffeescript WIP. this is specifically geared toward caremark data. am working on allowing any json format.
npm install jsoncsv
 
fs = require 'fs'
csvjs = require 'jsoncsv'
 
data = fs.readFileSync('data.json').toString()
jsoncsv.parse data(err, row) -> 
  console.log row
 
var jsoncsv, data, fs;
fs = require('fs');
jsoncsv = require('jsoncsv');
 
data = fs.readFileSync('data.json').toString();
 
jsoncsv.parse(data, function(errrow) {
  return console.log(row);
});
 
  • see example folder
  • see LICENSE
  • Please submit any pull requests or issues.