Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JSON to CSV converter
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

jcsv

Simple node module for converting a json array [ {}, {} ] to CSV.

Usage (as a module)

var jcsv = require ('jcsv');
var data = [
              {
                "a" : 1,
                "b" : 2
              },
              {
                "a" : 3,
                "b" : 4,
                "c" : 5
              }
];

jcsv(data, { separator : ',', newline : ";\n", headers : true }, function(err, csv){
  console.log(csv);
});
Something went wrong with that request. Please try again.