UNPKG

pnpm

Version:

Fast, disk space efficient package manager

120 lines (119 loc) 5.25 kB
{ "_args": [ [ { "raw": "write-pkg@3.2.0", "scope": null, "escapedName": "write-pkg", "name": "write-pkg", "rawSpec": "3.2.0", "spec": "3.2.0", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/supi" ] ], "_from": "write-pkg@3.2.0", "_id": "write-pkg@3.2.0", "_inCache": true, "_location": "/write-pkg", "_nodeVersion": "8.11.2", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/write-pkg_3.2.0_1528350256397_0.04229308865990489" }, "_npmUser": { "name": "sindresorhus", "email": "sindresorhus@gmail.com" }, "_npmVersion": "6.1.0", "_phantomChildren": { "detect-indent": "5.0.0", "graceful-fs": "4.1.15", "sort-keys": "2.0.0", "write-file-atomic": "2.4.2" }, "_requested": { "raw": "write-pkg@3.2.0", "scope": null, "escapedName": "write-pkg", "name": "write-pkg", "rawSpec": "3.2.0", "spec": "3.2.0", "type": "version" }, "_requiredBy": [ "#DEV:/", "/supi" ], "_resolved": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.2.0.tgz", "_shasum": "0e178fe97820d389a8928bc79535dbe68c2cff21", "_shrinkwrap": null, "_spec": "write-pkg@3.2.0", "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/supi", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/write-pkg/issues" }, "dependencies": { "sort-keys": "^2.0.0", "write-json-file": "^2.2.0" }, "description": "Write a package.json file", "devDependencies": { "ava": "*", "read-pkg": "^2.0.0", "tempfile": "^2.0.0", "xo": "*" }, "directories": {}, "dist": { "integrity": "sha512-tX2ifZ0YqEFOF1wjRW2Pk93NLsj02+n1UP5RvO6rCs0K6R2g1padvf006cY74PQJKMGS2r42NK7FD0dG6Y6paw==", "shasum": "0e178fe97820d389a8928bc79535dbe68c2cff21", "tarball": "https://registry.npmjs.org/write-pkg/-/write-pkg-3.2.0.tgz", "fileCount": 4, "unpackedSize": 4445, "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbGMYwCRA9TVsSAnZWagAAZvwP/0hWn484Q+pG80NU6Mtw\nTCLwHXDu1l8wuqcsXU7xMysb/vnGC1DY23YExCYKDH5dAa7op9mlaW7vNv2d\nsL2mnjbwDD+WVoUahgXxRtXyVzTfu9QHgEuwjZDTvHheKbsn9wVBFyt1vV3L\nqrfSt/y8pnpRxykEiOMV+LvX8YzAB7LLiHUsDpcPQsawBZxItfchGicdDT1C\nBvZX7enSAfvQHF74M8mjUDcFYP33fORadrtLyWYZFmgxDyO5WWIOxNmzPrUQ\nRF6FyoYpqtwn69yu+CkyAX2CPyHZiyMz97QwP1Z0QnNVcG4b3FSTSlSKjaI4\njUneSV0kI8vukzuzmm/y68rwWMtNL4/dPsqefGVgN777HFuEW0UKOXq53LI5\nL9dXxvKFXHQ4LFmyqD9E4CgV9uamycjoMDJ7kE86LuPzK5IqnQfFduLfP+Xw\nn1513uFrMiHfGvvOunsWyItF+8H+5xEB76YOH+oF4eQivCUCwHVjSz8sXRvP\nBRJhuOnwYTskyjTILTv9vKFa5Qm9VoWy7/BbX/ngakkpHo+oGJNYuItMLRBJ\nKWiLVZBcGyDWBn9EoYIzJYB67tyvVgE7uvpOmzaFBz89iC0A/iqgZuJ8jxnp\n8LxcZhgmGBwALVp9pfWQ09+8T6zDivQqAnRGiLom+PEj5N6WiG5+GNxf9+YX\naOeR\r\n=65iV\r\n-----END PGP SIGNATURE-----\r\n" }, "engines": { "node": ">=4" }, "files": [ "index.js" ], "gitHead": "e379f4c8e90fafc7cf42f29b031095484fd00c2d", "homepage": "https://github.com/sindresorhus/write-pkg#readme", "keywords": [ "json", "write", "stringify", "file", "fs", "graceful", "pkg", "package" ], "license": "MIT", "maintainers": [ { "name": "sindresorhus", "email": "sindresorhus@gmail.com" } ], "name": "write-pkg", "optionalDependencies": {}, "readme": "# write-pkg [![Build Status](https://travis-ci.org/sindresorhus/write-pkg.svg?branch=master)](https://travis-ci.org/sindresorhus/write-pkg)\n\n> Write a `package.json` file\n\nWrites atomically and creates directories for you as needed. Sorts dependencies when writing. Preserves the indentation if the file already exists.\n\n\n## Install\n\n```\n$ npm install write-pkg\n```\n\n\n## Usage\n\n```js\nconst path = require('path');\nconst writePkg = require('write-pkg');\n\nwritePkg({foo: true}).then(() => {\n\tconsole.log('done');\n});\n\nwritePkg(__dirname, {foo: true}).then(() => {\n\tconsole.log('done');\n});\n\nwritePkg(path.join('unicorn', 'package.json'), {foo: true}).then(() => {\n\tconsole.log('done');\n});\n```\n\n\n## API\n\n### writePkg([path], data, [options])\n\nReturns a `Promise`.\n\n### writePkg.sync([path], data, [options])\n\n#### path\n\nType: `string`<br>\nDefault: `process.cwd()`\n\nPath to where the `package.json` file should be written or its directory.\n\n#### options\n\nType: `Object`\n\n##### normalize\n\nType: `boolean`<br>\nDefault: `true`\n\nRemove empty `dependencies`, `devDependencies`, `optionalDependencies` and `peerDependencies` objects.\n\n## Related\n\n- [read-pkg](https://github.com/sindresorhus/read-pkg) - Read a `package.json` file\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/write-pkg.git" }, "scripts": { "test": "xo && ava" }, "version": "3.2.0" }