{ "_args": [ [ { "raw": "load-json-file@^2.0.0", "scope": null, "escapedName": "load-json-file", "name": "load-json-file", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "/home/jdaugherty/work/GT2/GT2-Android/node_modules/read-pkg" ] ], "_from": "load-json-file@>=2.0.0 <3.0.0", "_id": "load-json-file@2.0.0", "_inCache": true, "_location": "/load-json-file", "_nodeVersion": "4.4.2", "_npmOperationalInternal": { "host": "packages-12-west.internal.npmjs.com", "tmp": "tmp/load-json-file-2.0.0.tgz_1462036668887_0.931434569414705" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "2.15.0", "_phantomChildren": {}, "_requested": { "raw": "load-json-file@^2.0.0", "scope": null, "escapedName": "load-json-file", "name": "load-json-file", "rawSpec": "^2.0.0", "spec": ">=2.0.0 <3.0.0", "type": "range" }, "_requiredBy": [ "/read-pkg" ], "_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", "_shasum": "7947e42149af80d696cbf797bcaabcfe1fe29ca8", "_shrinkwrap": null, "_spec": "load-json-file@^2.0.0", "_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/read-pkg", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/load-json-file/issues" }, "dependencies": { "graceful-fs": "^4.1.2", "parse-json": "^2.2.0", "pify": "^2.0.0", "strip-bom": "^3.0.0" }, "description": "Read and parse a JSON file", "devDependencies": { "ava": "*", "xo": "*" }, "directories": {}, "dist": { "shasum": "7947e42149af80d696cbf797bcaabcfe1fe29ca8", "tarball": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "49620f12bce627dc2459a08f5ef18cd2ff151eb2", "homepage": "https://github.com/sindresorhus/load-json-file#readme", "keywords": [ "read", "json", "parse", "file", "fs", "graceful", "load" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "load-json-file", "optionalDependencies": {}, "readme": "# load-json-file [![Build Status](https://travis-ci.org/sindresorhus/load-json-file.svg?branch=master)](https://travis-ci.org/sindresorhus/load-json-file)\n\n> Read and parse a JSON file\n\n[Strips UTF-8 BOM](https://github.com/sindresorhus/strip-bom), uses [`graceful-fs`](https://github.com/isaacs/node-graceful-fs), and throws more [helpful JSON errors](https://github.com/sindresorhus/parse-json).\n\n\n## Install\n\n```\n$ npm install --save load-json-file\n```\n\n\n## Usage\n\n```js\nconst loadJsonFile = require('load-json-file');\n\nloadJsonFile('foo.json').then(json => {\n\tconsole.log(json);\n\t//=> {foo: true}\n});\n```\n\n\n## API\n\n### loadJsonFile(filepath)\n\nReturns a promise for the parsed JSON.\n\n### loadJsonFile.sync(filepath)\n\nReturns the parsed JSON.\n\n\n## Related\n\n- [write-json-file](https://github.com/sindresorhus/write-json-file) - Stringify and write JSON to a file atomically\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n", "readmeFilename": "readme.md", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/load-json-file.git" }, "scripts": { "test": "xo && ava" }, "version": "2.0.0", "xo": { "esnext": true } }