Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
takes json and converts to csv
CoffeeScript
branch: master
Failed to load latest commit information.
example ripped out cli
lib ripped out cli
src ripped out cli
test ripped out cli
.gitignore add check for undefined
Cakefile adding cli:
LICENSE
package.json remove bin script
readme.md Typo in readme

readme.md

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

jsoncsv

  • a json to csv library in javascript/coffeescript

Install

npm install jsoncsv

Usage Example in CoffeeScript

fs = require 'fs'
jsoncsv = require 'jsoncsv'

COLUMNS = ['key1','key2','key3','action']

data = fs.readFileSync('data.json').toString()
jsoncsv.parse data, COLUMNS, (err, row) -> 
  console.log row

Usage Example in JavaScript

var jsoncsv, data, fs;
fs = require('fs');
jsoncsv = require('jsoncsv');

COLUMNS = ['key1','key2','key3','action'];

data = fs.readFileSync('data.json').toString();

jsoncsv.parse(data, COLUMNS, function(err, row) {
  return console.log(row);
});

Examples

  • see example folder

License

  • see LICENSE

Contributions

  • Please submit any pull requests or issues.
Something went wrong with that request. Please try again.