{"bugs":{"url":"https://github.com/pnpm/pnpm-shrinkwrap/issues"},"dist":{"shasum":"5bd0654dcec42fe683ff494f0c469e125603e6e6","tarball":"https://registry.npmjs.org/pnpm-shrinkwrap/-/pnpm-shrinkwrap-6.0.0.tgz","fileCount":36,"integrity":"sha512-c+GWM0deEHpp5nb2RG6FXyl2jX04lwiOAG14+hMhtYg6BwyDqdK9gURIxCwcgXZFifj2X5rze+6eOAYUSkghtQ==","signatures":[{"sig":"MEYCIQDVRHrSKPRzNPo7twGqJ8gKZpcOp5P2WfL4+L1f3X7pEQIhAKc3omtUN4bnhbidRlsJus3ODnaPkDejodlBv44Nmh8r","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37593},"main":"lib/index.js","name":"pnpm-shrinkwrap","files":["lib/"],"author":{"url":"https://www.kochan.io","name":"Zoltan Kochan","email":"z@kochan.io"},"readme":"# pnpm-shrinkwrap\n\n[![Build Status](https://travis-ci.org/pnpm/pnpm-shrinkwrap.svg?branch=master)](https://travis-ci.org/pnpm/pnpm-shrinkwrap)\n\n> pnpm's shrinkwrap\n\nReads and writes the public (`shrinkwrap.yaml`) and private (`node_modules/.shrinkwrap.yaml`) shrinkwrap files of pnpm.\nShrinkwrap files are the state files of the `node_modules` installed via pnpm. They are like\nthe `package-lock.json` of npm or the `yarn.lock` of Yarn.\n\n## Install\n\n```\nnpm i pnpm-shrinkwrap\n```\n\n## API\n\n### `readWanted(pkgPath, opts) => Promise<Shrinkwrap>`\n\nAlias: `read`\n\nReads the `shrinkwrap.yaml` file from the root of the package.\n\n#### Arguments\n\n* `pkgPath` - *Path* - the path to the project\n* `opts.ignoreIncompatible` - *Boolean* - `false` by default. If `true`, throws an error\nif the shrinkwrap file format is not compatible with the current library.\n\n### `readCurrent(pkgPath, opts) => Promise<Shrinkwrap>`\n\nAlias: `readPrivate`\n\nReads the shrinkwrap file from `node_modules/.shrinkwrap.yaml`.\n\n### `existsWanted(pkgPath) => Promise<Boolean>`\n\nReturns `true` if a `shrinkwrap.yaml` exists in the root of the package.\n\n### `write(pkgPath, wantedShrinkwrap, currentShrinkwrap) => Promise<void>`\n\nWrites the wanted/current shrinkwrap files. When they are empty, removes them.\n\n### `writeWantedOnly(pkgPath, wantedShrinkwrap) => Promise<void>`\n\nWrites the wanted shrinkwrap file only. Sometimes it is needed just to update the wanted shrinkwrap\nwithout touching `node_modules`.\n\n### `writeCurrentOnly(pkgPath, currentShrinkwrap) => Promise<void>`\n\nWrites the current shrinkwrap file only. Fails if there is no `node_modules` directory in the `pkgPath`.\n\n### `prune(shrinkwrap, [package]) => Promise<Shrinkwrap>`\n\nPrunes a shrinkwrap file. Prunning means removing packages that are not referenced.\n\n## License\n\n[MIT](LICENSE)\n","engines":{"node":">=4"},"gitHead":"c973426a28eb396d89e359371d2a36879a2b5948","license":"MIT","scripts":{"tsc":"rimraf lib && tsc","test":"tslint -c tslint.json -p . && preview && ts-node test --type-check","prepublishOnly":"npm run tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"homepage":"https://github.com/pnpm/pnpm-shrinkwrap#readme","keywords":["pnpm","shrinkwrap","lockfile"],"repository":{"url":"git+https://github.com/pnpm/pnpm-shrinkwrap.git","type":"git"},"_npmVersion":"5.7.1","description":"pnpm's shrinkwrap","directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_nodeVersion":"6.11.4","dependencies":{"ramda":"^0.25.0","js-yaml":"^3.8.4","@types/node":"^9.3.0","rimraf-then":"^1.0.1","@types/ramda":"^0.25.12","load-yaml-file":"^0.1.0","mkdirp-promise":"^5.0.1","util.promisify":"^1.0.0","dependency-path":"^1.0.0","write-file-atomic":"^2.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"^4.6.3","tempy":"^0.2.1","rimraf":"^2.6.1","tslint":"^5.8.0","ts-node":"^5.0.0","yaml-tag":"github:zkochan/yaml-tag","typescript":"^2.3.4","@types/tape":"^4.2.30","@pnpm/logger":"^1.0.0","package-preview":"^1.0.0"},"peerDependencies":{"@pnpm/logger":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pnpm-shrinkwrap_6.0.0_1520119244662_0.31115947617493434","host":"s3://npm-registry-packages"},"_id":"pnpm-shrinkwrap@6.0.0","version":"6.0.0"}