motion
Version:
motion - moving development forward
84 lines (83 loc) • 3.11 kB
JSON
{
"_args": [
[
"load-json-file@https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"/Users/nw/flint/packages/flint"
]
],
"_from": "load-json-file@>=1.0.0 <2.0.0",
"_id": "load-json-file@1.1.0",
"_inCache": true,
"_location": "/load-json-file",
"_phantomChildren": {},
"_requested": {
"name": "load-json-file",
"raw": "load-json-file@https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"rawSpec": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"scope": null,
"spec": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"type": "remote"
},
"_requiredBy": [
"/read-pkg"
],
"_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"_shasum": "956905708d58b4bab4c2261b04f59f31c99374c0",
"_shrinkwrap": null,
"_spec": "load-json-file@https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz",
"_where": "/Users/nw/flint/packages/flint",
"author": {
"email": "sindresorhus@gmail.com",
"name": "Sindre Sorhus",
"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",
"pinkie-promise": "^2.0.0",
"strip-bom": "^2.0.0"
},
"description": "Read and parse a JSON file",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=0.10.0"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/load-json-file#readme",
"keywords": [
"file",
"fs",
"graceful",
"json",
"load",
"parse",
"read"
],
"license": "MIT",
"name": "load-json-file",
"optionalDependencies": {},
"readme": "# load-json-file [](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 that resolves to 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](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/load-json-file.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "1.1.0",
"xo": {
"ignores": [
"test.js"
]
}
}