0.1.2 • Published 9 years ago

fs-json v0.1.2

Weekly downloads
35
License
MIT
Repository
github
Last release
9 years ago

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);
});