pnpm
Version:
Fast, disk space efficient package manager
126 lines (125 loc) • 5.93 kB
JSON
{
"_args": [
[
{
"raw": "write-json-file@3.2.0",
"scope": null,
"escapedName": "write-json-file",
"name": "write-json-file",
"rawSpec": "3.2.0",
"spec": "3.2.0",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/npm-resolver"
]
],
"_from": "write-json-file@3.2.0",
"_hasShrinkwrap": false,
"_id": "write-json-file@3.2.0",
"_location": "/write-json-file",
"_nodeVersion": "10.15.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/write-json-file_3.2.0_1554566527667_0.3441063625854759"
},
"_npmUser": {
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
},
"_npmVersion": "6.4.1",
"_phantomChildren": {},
"_requested": {
"raw": "write-json-file@3.2.0",
"scope": null,
"escapedName": "write-json-file",
"name": "write-json-file",
"rawSpec": "3.2.0",
"spec": "3.2.0",
"type": "version"
},
"_requiredBy": [
"#DEV:/",
"/@pnpm/npm-resolver",
"/@pnpm/package-requester",
"/@pnpm/package-store"
],
"_resolved": "https://registry.npmjs.org/write-json-file/-/write-json-file-3.2.0.tgz",
"_shasum": "65bbdc9ecd8a1458e15952770ccbadfcff5fe62a",
"_shrinkwrap": null,
"_spec": "write-json-file@3.2.0",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/npm-resolver",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/write-json-file/issues"
},
"dependencies": {
"detect-indent": "^5.0.0",
"graceful-fs": "^4.1.15",
"make-dir": "^2.1.0",
"pify": "^4.0.1",
"sort-keys": "^2.0.0",
"write-file-atomic": "^2.4.2"
},
"description": "Stringify and write JSON to a file atomically",
"devDependencies": {
"ava": "^1.4.1",
"tempfile": "^2.0.0",
"tsd": "^0.7.2",
"xo": "^0.24.0"
},
"directories": {},
"dist": {
"integrity": "sha512-3xZqT7Byc2uORAatYiP3DHUUAVEkNOswEWNs9H5KXiicRTvzYzYqKjYc4G7p+8pltvAw641lVByKVtMpf+4sYQ==",
"shasum": "65bbdc9ecd8a1458e15952770ccbadfcff5fe62a",
"tarball": "https://registry.npmjs.org/write-json-file/-/write-json-file-3.2.0.tgz",
"fileCount": 5,
"unpackedSize": 7461,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcqM2ACRA9TVsSAnZWagAAnYAP/jZtZ3gLWR2jiDFxgLxg\n9lnlM4/zsw55Tb8IcUgQIWTlvtBdQAwL4fI1kZtz1tKdZZH6ON3TgNiWpQOW\n4nWVh5ZN5NVg1wCahDn9JnD0bt/5wx7RAZcXn1rcoM4yD0wZxsANTzf7n+/e\nApBXC0nDQSZN6Rt2/bQ1NBMVd+J0vwi7YMh0ZEnfX0waL43Vt0vLyr8+J6m+\noOMpeuq0IPNC2Yq0xtGcsHBYFNKHVcplHKdm/h0Xdsx4SFR0GTRJNZ2qgDpg\nvSiSapx4t8h+XyDE6ldvem3VqeclJMXdKh3HBHW5Ay4N1cqL8XSXidXHK9l1\no2UYKWzeVCpG2xxFdeSugvMXk9tPKWACEzJloDTd4hd/hWrS+s4GewhVrElj\nwVRtnPAapI2QCJoEUpkztV9oH6zSf7Oe65ws75+ADRjTcnrgJVXg6WOMCD93\n2OaU6s5RyfRDi3EnmLd4kiRDxJLB17wfMI5FrkXmvM9Y4067zDh85Ota2vjH\n10u7IIBaBUU2wP69s7ATZbEd5y0/i9xDcFooRfTfK6jzbg+lyfdbB/vpaiPt\nZ54DBEBKFMwmGypv+kMIh/HbfB+PIartdFGv+mMWiyqUAcJ0yDEsOfHgqvCz\ndSs3b1QVCe+yQOgfrMibmuAF+rrEBeN1sTIL0tQzoDzQvC2x83urX/hzrcQ8\nCL/O\r\n=up7L\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"index.js",
"index.d.ts"
],
"gitHead": "6b5ca11b1f4f3996b5e9ce290c445c8c4a2f50db",
"homepage": "https://github.com/sindresorhus/write-json-file#readme",
"keywords": [
"write",
"json",
"stringify",
"file",
"fs",
"graceful",
"stable",
"sort",
"newline",
"indent",
"atomic",
"atomically"
],
"license": "MIT",
"maintainers": [
{
"name": "sindresorhus",
"email": "sindresorhus@gmail.com"
}
],
"name": "write-json-file",
"optionalDependencies": {},
"readme": "# write-json-file [](https://travis-ci.org/sindresorhus/write-json-file)\n\n> Stringify and write JSON to a file [atomically](https://github.com/npm/write-file-atomic)\n\nCreates directories for you as needed.\n\n\n## Install\n\n```\n$ npm install write-json-file\n```\n\n\n## Usage\n\n```js\nconst writeJsonFile = require('write-json-file');\n\n(async () => {\n\tawait writeJsonFile('foo.json', {foo: true});\n})();\n```\n\n\n## API\n\n### writeJsonFile(filePath, data, [options])\n\nReturns a `Promise`.\n\n### writeJsonFile.sync(filePath, data, [options])\n\n#### options\n\nType: `Object`\n\n##### indent\n\nType: `string` `number`<br>\nDefault: `'\\t'`\n\nIndentation as a string or number of spaces.<br>\nPass in `null` for no formatting.\n\n##### detectIndent\n\nType: `boolean`<br>\nDefault: `false`\n\nDetect indentation automatically if the file exists.\n\n##### sortKeys\n\nType: `boolean` `Function`<br>\nDefault: `false`\n\nSort the keys recursively.<br>\nOptionally pass in a [`compare`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort) function.\n\n##### replacer\n\nType: `Function`\n\nPassed into [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#The_replacer_parameter).\n\n##### mode\n\nType: `number`<br>\nDefault: `0o666`\n\n[Mode](https://en.wikipedia.org/wiki/File_system_permissions#Numeric_notation) used when writing the file.\n\n\n## Related\n\n- [load-json-file](https://github.com/sindresorhus/load-json-file) - Read and parse a JSON file\n- [make-dir](https://github.com/sindresorhus/make-dir) - Make a directory and its parents if needed\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/write-json-file.git"
},
"scripts": {
"test": "xo && ava && tsd"
},
"version": "3.2.0"
}