fs-json
v0.1.2
Published
An fs module wrapper to support filesystem json operations.
Downloads
31
Readme
An fs module wrapper to support filesystem json operations.
##Installation
$ npm install --save fs-json
##Usage:
// NOTE : closure init //
fsjson = require('fs-json')();
// sync //
var data = jsonUtil.loadSync('path/to/file.json');
// async //
var data = jsonUtil.load('path/to/file.json', function(data) {
console.log(data);
});