really-load-json

1.0.0 • Public • Published

really-load-json

Load and parse a JSON file, either sync or async

Usage

var reallyLoadJSON = require('really-load-json');
 
// Load this module's package.json to demo
var packageData = reallyLoadJSON.sync('package.json');
console.log('This module name is', packageData.name);
 
// Or async
reallyLoadJSON.async('package.json', function(err, packageData) {
    console.log('(async) This module name is', packageData.name);
});
 

Have a look at example.js.

Tests

Tests are in tests.js and built with nodeunit. Run npm test to run the tests.

Readme

Keywords

Package Sidebar

Install

npm i really-load-json

Weekly Downloads

2

Version

1.0.0

License

Apache 2

Last publish

Collaborators

  • sole