{"name":"pnpm-shrinkwrap","version":"8.1.5","description":"Read/write/prune and other utils for dealing with shrinkwrap.yaml files","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=6"},"scripts":{"lint":"tslint -c tslint.json src/**/*.ts test/**/*.ts","test":"npm run tsc && npm run lint && ts-node test --type-check","tsc":"rimraf lib && tsc","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/master/packages/shrinkwrap"},"keywords":["pnpm","shrinkwrap","lockfile"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"homepage":"https://github.com/pnpm/pnpm/blob/master/packages/shrinkwrap#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.32","@types/tempy":"0.2.0","pnpm-shrinkwrap":"link:","rimraf":"2.6.2","tape":"4.9.1","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.11.0","typescript":"3.1.6","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/resolver-base":"2.0.0","@pnpm/types":"2.0.0","@types/js-yaml":"3.11.2","@types/node":"10.12.10","@types/ramda":"0.25.39","dependency-path":"2.0.1","get-npm-tarball-url":"2.0.1","js-yaml":"3.12.0","load-yaml-file":"0.1.0","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.3.0"},"_id":"pnpm-shrinkwrap@8.1.5","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-0q6xk262KqsBTWKIEPIe1o8rZyqYlfVyVH9KtKZD0IBONvdNVZ0G6uM3i1F8wB9TnpVkKEu1neR30naWEJDXtQ==","shasum":"62a06276f8a61a4c4e5a961b8a570b9f5bf2ad92","tarball":"http://registry-npm.ywwl.com/pnpm-shrinkwrap/download/pnpm-shrinkwrap-8.1.5.tgz","fileCount":51,"unpackedSize":65818,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb+wGjCRA9TVsSAnZWagAAE/UP/0glOxX9FBTI5Oy0kxaV\nxrNUBvQLcBuo3iCo2SKUTS0Mfhu+1rJ/EVZzdleEQfTgGTKtAH4++3duY/cv\nk0MEvgfGI912TBzcNyDmUqvVO9/jduRUwxDjvrb8LH8e30iM5H0FeJCG9NJY\nDuzkwg5kFcT7EFsYwnMFn1RImUCthjuypGkdG/6b8RhwKqYbwFTzAsDc8pF2\n0TEGkwNYLIfbkKaJyWZxnl/qy3merVwI2NZHmuAUPx4MoMagR4+owKdXEmsJ\nRwNeCz7dEQ7WbkzVHPsmS3TxKMFUbN3LiuFZyD71fGjHVARHun8OK45sZ+Fi\neVYDdFgSqhWbKza4yK/5fVY7dI9aS4AEPEMlrILr+23oFk9wMHRvh1RDf9up\nbmvGbP4gAh4XQIDAWNNotbtA/nlg8jpRrKUxJiGahCHrVFx4TbJwd9zYi6WI\nFJbNjkwA79X2gbkidZDQQpparMaUJx6blhZnXFeJet5ouFMplBKLywY3O25W\nSjlEwQ55ychuSVdzt5DHFkjIEE5ZTAMod/FKYJRG0MssHMgtcwvFYtauu4B4\n7OLbKwBStyxrw3e9eLijIXJSmFRJwkAcWrMA99kvkPMjpy8s9URA5zXMNPp1\nXvA6QRtRHyc0KpDZmwNyYHS71D5ggUXvEfhGpaVFw3ng9z2iut7q+EbvWGBp\nh9nE\r\n=4xEU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEtBdzxjqMTVu6weTiBGB4u2BmSDW31+DChfiqcoUFsdAiEAgrptRHspdYhymZ7sAgwg+5Jym8YC3Lg1kfgxT+20ZwQ="}],"size":16766,"noattachment":false,"key":"/pnpm-shrinkwrap/-/pnpm-shrinkwrap-8.1.5.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pnpm-shrinkwrap_8.1.5_1543176610367_0.9340457758073937"},"_hasShrinkwrap":false,"readme":"# pnpm-shrinkwrap\n\n> Read/write/prune and other utils for dealing with shrinkwrap.yaml files\n\nReads and writes the wanted (`shrinkwrap.yaml`) and current (`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, warn: (msg: string) => void) => Promise<Shrinkwrap>`\n\nPrunes a shrinkwrap file. Prunning means removing packages that are not referenced.\n\n### `pruneWithoutPackageJson(shrinkwrap, warn: (msg: string) => void) => Promise<Shrinkwrap>`\n\nPrunes a shrinkwrap file using only the shrinkwrap object.\n\n### `nameVerFromPkgSnapshot(relDepPath, pkgSnapshot): {name: string, version: string}`\n\n### `pkgSnapshotToResolution(relDepPath, pkgSnapshot, registry): Resolution`\n\n### `satisfiesPackageJson(shrinkwrap, packageJson): Boolean`\n\nReturns `true` if the shrinkwrap file resolves the dependencies in the `package.json`.\n\n## License\n\n[MIT](LICENSE)\n","publish_time":1543176610630,"_cnpm_publish_time":1543176610630,"dist-tags":{"latest":"8.1.6","next":"8.0.0-2"}}