canonical
Version:
Canonical code style linter and formatter for JavaScript, SCSS and CSS.
78 lines (77 loc) • 4.23 kB
JSON
{
"_args": [
[
"read-json-sync@https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"/Users/gajus/Documents/dev/canonical-code-style/canonical"
]
],
"_from": "read-json-sync@>=1.1.0 <2.0.0",
"_id": "read-json-sync@1.1.1",
"_inCache": true,
"_location": "/read-json-sync",
"_phantomChildren": {},
"_requested": {
"name": "read-json-sync",
"raw": "read-json-sync@https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"rawSpec": "https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"type": "remote"
},
"_requiredBy": [
"/flat-cache"
],
"_resolved": "https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"_shasum": "43c669ae864aae308dfbbb2721a67e295ec8fff6",
"_shrinkwrap": null,
"_spec": "read-json-sync@https://registry.npmjs.org/read-json-sync/-/read-json-sync-1.1.1.tgz",
"_where": "/Users/gajus/Documents/dev/canonical-code-style/canonical",
"author": {
"name": "Shinnosuke Watanabe",
"url": "https://github.com/shinnn"
},
"bugs": {
"url": "https://github.com/shinnn/read-json-sync/issues"
},
"dependencies": {
"graceful-fs": "^4.1.2"
},
"description": "Read and parse a JSON file synchronously",
"devDependencies": {
"@shinnn/eslint-config-node-legacy": "^1.0.0",
"eslint": "^1.7.3",
"istanbul": "^0.4.0",
"tap-spec": "^4.1.0",
"tape": "^4.2.2"
},
"files": [
"index.js"
],
"homepage": "https://github.com/shinnn/read-json-sync#readme",
"keywords": [
"data",
"file",
"json",
"load",
"parse",
"read",
"sync",
"synchronous",
"synchronously"
],
"license": "MIT",
"name": "read-json-sync",
"optionalDependencies": {},
"readme": "# read-json-sync\n\n[](https://www.npmjs.com/package/read-json-sync)\n[](https://travis-ci.org/shinnn/read-json-sync)\n[](https://ci.appveyor.com/project/ShinnosukeWatanabe/read-json-sync)\n[](https://david-dm.org/shinnn/read-json-sync)\n[](https://david-dm.org/shinnn/read-json-sync)\n[](https://david-dm.org/shinnn/read-json-sync#info=devDependencies)\n\nA [Node](https://nodejs.org/) module to read and parse a [JSON](http://www.json.org/) file synchronously\n\n```javascript\nconst readJsonSync = require('read-json-sync');\n\nreadJsonSync('package.json'); //=> {name: 'read-json-sync', version: '1.0.0', ...}\n```\n\nNode's built-in [`require`](https://nodejs.org/api/globals.html#globals_require) can do almost the same thing, but this module doesn't [cache](https://nodejs.org/api/modules.html#modules_caching) results.\n\n## Installation\n\n[Use npm](https://docs.npmjs.com/cli/install).\n\n```\nnpm install read-json-sync\n```\n\n## API\n\n```javascript\nconst readJsonSync = require('read-json-sync');\n```\n\n### readJsonSync(*filePath* [, *options*])\n\n*filePath*: `String` (path to a JSON file) \n*options*: `Object` ([`fs.readFile`](https://nodejs.org/api/fs.html#fs_fs_readfile_filename_options_callback) options) \nReturn: `Object` (parsed [JSON](https://tools.ietf.org/html/rfc7159) data)\n\n## License\n\nCopyright (c) 2014 - 2015 [Shinnosuke Watanabe](https://github.com/shinnn)\n\nLicensed under [the MIT License](./LICENSE).\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/shinnn/read-json-sync.git"
},
"scripts": {
"coverage": "node --strong_mode node_modules/.bin/istanbul cover test/test.js",
"pretest": "eslint --config @shinnn/node-legacy index.js test/test.js",
"test": "node --strong_mode --throw-deprecation --track-heap-objects test/test.js | tap-spec"
},
"version": "1.1.1"
}