1
0
Fork 0
arangodb/js/node/node_modules/read-json-sync
Andreas Streichardt 8a286a30d9 We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
..
LICENSE We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
README.md We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
index.js We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00
package.json We are now using semistandard and eslint 2016-06-29 18:27:02 +02:00

README.md

read-json-sync

NPM version Build Status Build status Coverage Status Dependency Status devDependency Status

A Node module to read and parse a JSON file synchronously

const readJsonSync = require('read-json-sync');

readJsonSync('package.json'); //=> {name: 'read-json-sync', version: '1.0.0', ...}

Node's built-in require can do almost the same thing, but this module doesn't cache results.

Installation

Use npm.

npm install read-json-sync

API

const readJsonSync = require('read-json-sync');

readJsonSync(filePath [, options])

filePath: String (path to a JSON file)
options: Object (fs.readFile options)
Return: Object (parsed JSON data)

License

Copyright (c) 2014 - 2015 Shinnosuke Watanabe

Licensed under the MIT License.