pnpm
Version:
Fast, disk space efficient package manager
121 lines (120 loc) • 5.32 kB
JSON
{
"_args": [
[
{
"raw": "load-json-file@5.3.0",
"scope": null,
"escapedName": "load-json-file",
"name": "load-json-file",
"rawSpec": "5.3.0",
"spec": "5.3.0",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm"
]
],
"_from": "load-json-file@5.3.0",
"_hasShrinkwrap": false,
"_id": "load-json-file@5.3.0",
"_location": "/load-json-file",
"_nodeVersion": "10.15.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/load-json-file_5.3.0_1554566531791_0.7754365424027732"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "6.4.1",
"_phantomChildren": {},
"_requested": {
"raw": "load-json-file@5.3.0",
"scope": null,
"escapedName": "load-json-file",
"name": "load-json-file",
"rawSpec": "5.3.0",
"spec": "5.3.0",
"type": "version"
},
"_requiredBy": [
"/",
"/@pnpm/check-package",
"/@pnpm/npm-resolver",
"/@pnpm/package-requester",
"/@pnpm/package-store",
"/supi"
],
"_resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz",
"_shasum": "4d3c1e01fa1c03ea78a60ac7af932c9ce53403f3",
"_shrinkwrap": null,
"_spec": "load-json-file@5.3.0",
"_where": "/home/zoltan/src/pnpm/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.15",
"parse-json": "^4.0.0",
"pify": "^4.0.1",
"strip-bom": "^3.0.0",
"type-fest": "^0.3.0"
},
"description": "Read and parse a JSON file",
"devDependencies": {
"ava": "^1.4.1",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"directories": {},
"dist": {
"integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==",
"shasum": "4d3c1e01fa1c03ea78a60ac7af932c9ce53403f3",
"tarball": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz",
"fileCount": 5,
"unpackedSize": 5416,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqM2ECRA9TVsSAnZWagAA9ZMP/Rz7amzibVVRAI4V0vmp\nm7oxW1Ht1y/VAxguL5hX7yhUGv3YndFlGvJDqZi3KsxB1C6JKO1AjjIxJkDp\nba1U8rYXkBcu3CzHKVHaJ32tiHn5ZfQWDOj2PJMqNBXwSJGg2znmKmGLT5kS\n7js9Tb0CY57XW+et7BgpBezIUj4CAdYPTegn+Uf1ev/MypmrHdT/gfsk/TdR\ngNs+BClVlnYyxR9UT0n9bdrONo2NKQ12eQXZWLOq+Vj03bwEEy6Mmpv8bLHD\nxKEulzergBLK08T3vMLruez+Ay9PvnfuXWZcwishoY4mlLMawR79+F1pUkDZ\nv7jD70XhuaES0M7JKLymsZHaLj7gaTLy3wBluWc2EJzfdjVP/kbhImFaDhlp\nJ7GIpp7sYu0Ifaipr8HA0fU0UqLfZk7JFoMC6J0S6GbGwkBjHSm5cfRWCFD/\ndV75pJimnZ8R0NnmmY2RK4FFrbOQaR+nfwbkW4PFDzxwMfVL0Ynv0KU0xLoJ\nYiz0CGjRzoEDZBlujaIBp0YMBPJIWhlr4H28ZXEbQF/hcd/SPQ475ep9p2m3\n/QcASzUax5m873T3xkDwshl2Efe2EhlSmOTvRiiDWyNClX5xh8Ufpy+fMlGH\nMEYZHiSgy0KEr1jBb7B8zJWGPQgQcAl2dpw3cbYz8vwRzxP12jwUQzLdqW3D\n2h4Y\r\n=3n64\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js",
"index.d.ts"
],
"gitHead": "62ba870080fa1752ed4f482dc239bf640e3d5ede",
"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 && tsd"
},
"version": "5.3.0"
}