{"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"keywords":["read","json","parse","file","fs","graceful","load"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"description":"Read and parse a JSON file","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","repository":{"type":"git","url":"git+https://github.com/sindresorhus/load-json-file.git"},"users":{"ziflex":true,"nicknaso":true,"usingthesystem":true,"rocket0191":true},"bugs":{"url":"https://github.com/sindresorhus/load-json-file/issues"},"license":"MIT","versions":{"1.0.0":{"name":"load-json-file","version":"1.0.0","description":"Read and parse a JSON file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/load-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load"],"dependencies":{"graceful-fs":"^4.1.2","parse-json":"^2.2.0","pify":"^1.1.0","pinkie-promise":"^1.0.0","strip-bom":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"585e33ee885778ef51f1bc23d019a409050e88a3","bugs":{"url":"https://github.com/sindresorhus/load-json-file/issues"},"homepage":"https://github.com/sindresorhus/load-json-file#readme","_id":"load-json-file@1.0.0","_shasum":"2c73a18a5f862dece86e85225815ac512ff97c63","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"2c73a18a5f862dece86e85225815ac512ff97c63","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/load-json-file/-/load-json-file-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.0.1":{"name":"load-json-file","version":"1.0.1","description":"Read and parse a JSON file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/load-json-file"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load"],"dependencies":{"graceful-fs":"^4.1.2","parse-json":"^2.2.0","pify":"^2.0.0","pinkie-promise":"^1.0.0","strip-bom":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"3735e52cca5cb3fc459786ac35db13b7142ee349","bugs":{"url":"https://github.com/sindresorhus/load-json-file/issues"},"homepage":"https://github.com/sindresorhus/load-json-file","_id":"load-json-file@1.0.1","_shasum":"d24e14be27f68a6aec0f82365b23e1014603fc19","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d24e14be27f68a6aec0f82365b23e1014603fc19","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/load-json-file/-/load-json-file-1.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"1.1.0":{"name":"load-json-file","version":"1.1.0","description":"Read and parse a JSON file","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/load-json-file"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["json","read","parse","file","fs","graceful","load"],"dependencies":{"graceful-fs":"^4.1.2","parse-json":"^2.2.0","pify":"^2.0.0","pinkie-promise":"^2.0.0","strip-bom":"^2.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"115157a417380d3160da418d4ff25bb33b0051eb","bugs":{"url":"https://github.com/sindresorhus/load-json-file/issues"},"homepage":"https://github.com/sindresorhus/load-json-file","_id":"load-json-file@1.1.0","_shasum":"956905708d58b4bab4c2261b04f59f31c99374c0","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"956905708d58b4bab4c2261b04f59f31c99374c0","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/load-json-file/-/load-json-file-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{}},"2.0.0":{"name":"load-json-file","version":"2.0.0","description":"Read and parse a JSON file","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/load-json-file.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["read","json","parse","file","fs","graceful","load"],"dependencies":{"graceful-fs":"^4.1.2","parse-json":"^2.2.0","pify":"^2.0.0","strip-bom":"^3.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"49620f12bce627dc2459a08f5ef18cd2ff151eb2","bugs":{"url":"https://github.com/sindresorhus/load-json-file/issues"},"homepage":"https://github.com/sindresorhus/load-json-file#readme","_id":"load-json-file@2.0.0","_shasum":"7947e42149af80d696cbf797bcaabcfe1fe29ca8","_from":".","_npmVersion":"2.15.0","_nodeVersion":"4.4.2","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"7947e42149af80d696cbf797bcaabcfe1fe29ca8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/load-json-file/-/load-json-file-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/load-json-file-2.0.0.tgz_1462036668887_0.931434569414705"},"directories":{}}},"name":"load-json-file","time":{"modified":"2017-07-04T14:43:06.128Z","created":"2015-09-02T06:41:38.200Z","1.0.0":"2015-09-02T06:41:38.200Z","1.0.1":"2015-09-04T07:53:06.716Z","1.1.0":"2015-11-14T19:30:26.909Z","2.0.0":"2016-04-30T17:17:49.311Z"},"readmeFilename":"readme.md","homepage":"https://github.com/sindresorhus/load-json-file#readme"}