UNPKG

aoot

Version:

Converts an array of objects to and from data formats JSON, CSV, TSV, XML and YAML

9 lines (5 loc) 146 B
var fs = require('fs') var aoot = require('aoot') var data = fs.readFileSync('./sample.csv') var json = aoot.json(data, ",") console.log(json)