@zkochan/pnpm
Version:
Fast, disk space efficient package manager
118 lines (117 loc) • 5.21 kB
JSON
{
"_args": [
[
{
"raw": "load-json-file@5.0.0",
"scope": null,
"escapedName": "load-json-file",
"name": "load-json-file",
"rawSpec": "5.0.0",
"spec": "5.0.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm"
]
],
"_from": "load-json-file@5.0.0",
"_id": "load-json-file@5.0.0",
"_inCache": true,
"_location": "/load-json-file",
"_nodeVersion": "8.11.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/load-json-file_5.0.0_1525593994579_0.8980414842921527"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {},
"_requested": {
"raw": "load-json-file@5.0.0",
"scope": null,
"escapedName": "load-json-file",
"name": "load-json-file",
"rawSpec": "5.0.0",
"spec": "5.0.0",
"type": "version"
},
"_requiredBy": [
"/",
"/@pnpm/check-package",
"/@pnpm/npm-resolver",
"/@pnpm/package-requester",
"/package-store",
"/supi"
],
"_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.0.0.tgz",
"_shasum": "5b5ef7cb6e1e337408e02fe01fe679ccc0cd18d5",
"_shrinkwrap": null,
"_spec": "load-json-file@5.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm",
"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": "^4.0.0",
"pify": "^3.0.0",
"strip-bom": "^3.0.0"
},
"description": "Read and parse a JSON file",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"directories": {},
"dist": {
"integrity": "sha512-wWRJeA/YQ2s53fBSrPrr6gnSKmNcnk4TV4c40ITRGQ4uxpgPddBL9xNh3WxPjJHewwzo2rFkEJWt87OR/35MEw==",
"shasum": "5b5ef7cb6e1e337408e02fe01fe679ccc0cd18d5",
"tarball": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.0.0.tgz",
"fileCount": 4,
"unpackedSize": 3779,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa7reLCRA9TVsSAnZWagAAlT8P+waQvMXX4Rn6c4cWeS9B\nwzfp3NmStowq6nj5YaZfDhQxuQJ3Bi+LnLiA5hTNezZk4ihMPpk2w68JSeFL\nubTFlaAI9sRnUBSVATh3LzWgArOWgde4wvGGwHb4hAZ1wSUWFnfFxPl/Fh2i\n3PPyUd5mCqVvyWggN2uzm/skngmR8ISkSXgrhRo3zRtgPZnKIK8ucZKKfwiN\nua46ubSdbbqtiWA7gc2uWbXQx5qvkkSFoMz0TLHHtjyx5KjvLU7E6U8QTbG6\nFMAxNKIV4y0srAQF1+rs4f0KfsIKkO0jqJpG1v6SLYuRjtsRdeunCVGBK6dg\nqcF4c+2H+0lgyTAXbBhFGzWq6k/xCLUKVrYTbT7//AUodU07jyuAmkLT3mzb\nbVxaZq4Zeg9RZI5uv0ycGELRuMjFvApL6iFtzBlst24UZR4ok2iYqQo14t4t\nqY1VDP3s+1NYH7me+Rz4TXGrvSOTEovVC+sUKncXeEh8FJSuKeDeFzT1654x\nb2nQG5y7p2vgT0umeL5xlbRKfymDhWNBH0Ioua2T049nnPoc+QoJOyBuvZca\nzdK62A3Xzozz8ZfFrfbhjdgsjRxCaU7qcYjOKU3LMA2vYolziCKMKJAOIJ/K\nXUZS2GB9cyZ6pSdRoC0p/JjxZAAluXH5f3XTtaFZlDYIb+F6qG+zBs3dlCRG\nLNSF\r\n=uCMo\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js"
],
"gitHead": "8149bcbde096cb8ac9328091c06f11f83a04e569",
"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 [](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 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, [options])\n\nReturns a promise for the parsed JSON.\n\n### loadJsonFile.sync(filepath, [options])\n\nReturns the parsed JSON.\n\n#### options\n\nType: `Object`\n\n##### beforeParse\n\nType: `Function`\n\nApplies a function to the JSON string before parsing.\n\n##### reviver\n\nType: `Function`\n\nPrescribes how the value originally produced by parsing is transformed, before being returned. See the [`JSON.parse` docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse#Using_the_reviver_parameter) for more.\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": "5.0.0"
}