{"name":"pnpm-shrinkwrap","version":"6.4.0","description":"Read/write/prune and other utils for dealing with shrinkwrap.yaml files","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=4"},"files":["lib/"],"scripts":{"test":"tslint -c tslint.json -p . && preview && ts-node test --type-check","tsc":"rimraf lib && tsc","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/pnpm-shrinkwrap.git"},"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-shrinkwrap/issues"},"homepage":"https://github.com/pnpm/pnpm-shrinkwrap#readme","peerDependencies":{"@pnpm/logger":"^1.0.0"},"devDependencies":{"@pnpm/logger":"^1.0.0","@types/tape":"^4.2.30","@types/tempy":"^0.1.0","package-preview":"^1.0.0","rimraf":"^2.6.1","tape":"^4.6.3","tempy":"^0.2.1","ts-node":"^6.0.0","tslint":"^5.8.0","typescript":"^2.3.4","yaml-tag":"github:zkochan/yaml-tag"},"dependencies":{"@pnpm/resolver-base":"^1.0.0","@types/js-yaml":"^3.10.1","@types/node":"^10.0.6","@types/ramda":"^0.25.12","dependency-path":"^1.2.1","get-npm-tarball-url":"^2.0.1","js-yaml":"^3.8.4","load-yaml-file":"^0.1.0","mkdirp-promise":"^5.0.1","ramda":"^0.25.0","rimraf-then":"^1.0.1","util.promisify":"^1.0.0","write-file-atomic":"^2.1.0"},"gitHead":"597c891536c48b5b62abd4d55c6a276bf942cbe6","_id":"pnpm-shrinkwrap@6.4.0","_npmVersion":"6.0.0","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-/b79ZgIjg52yLZ8CIf9ol+PoZ+GWNvjPIh9fLVyVpz2p5iU+RMFQPq764UNZnTxzbyo2vcELR6DtTS9yt8cnPQ==","shasum":"435252503e22b989bf0a9d6e70c91c9cdb159905","tarball":"http://registry-npm.ywwl.com/pnpm-shrinkwrap/download/pnpm-shrinkwrap-6.4.0.tgz","fileCount":45,"unpackedSize":44994,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa8tlLCRA9TVsSAnZWagAAh5UP/jRMR+AlZVJmlbcCGBdi\nyV1PTSCSXwn0u7XACYHIQ4RfofNpBe2KhHlgAPP43zYn5vEyG7eBNqFMZ6Ok\n1v7Cw47DSRyhJMJLbKGbxD2oGgL00pZorUDMYkwzuiBjhSd0n9SiDKMk/zJB\nuBJJLgzTy+V+HFhmJKlGyE/ksF90VxFogXwl2CmNhAuQpkNaUWUcD/NY4Ox0\n9A+wg0ra0ciwr2ur1Z0Bk15AG2nKWd6ztu1KkzcFH3oLUAONkHsCCHZIKMlE\nriT5zcpEJAe1RiVvYyOAE4LmzVak4KZyTibwOUM7H5k+321MdSFEhXQJcHtq\n7aLyPh45YQiFoQhDoHwGR/kJdLngWP+xShlgiYZw/5eQFKVyNr+sf2vBjB8B\n92/Xm+iWQzwdmR9vRo2CPDdvaFVCYyBxKZsgiMZ5j1jB06wc3hfznoEsEL/r\nbSr16lJdfCnhzI0uvVMyAIuM4nYtNGyhSB+xpAPkG2H0aPuM9flByafeehAo\nrU9NP1JYJhax19Fgi0uCnIZ6yySRRkictxtqa/mCe4irI7fldTo7tu1+EpA1\n6ZRlk1N4n4jf59jxw+n+eWX0xmmLR7NPEivqsouJ0XXImIiuwR35hm3c4YTo\nsSMZI8XTKe8ioYhLhvtm/G42ZPGzZxmVrzcAGgmftSC0PvS3aTtBzKOK5oIw\nOwAw\r\n=fxOj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHpRYsgJsjD7XPxgR/nYy80ZYmz94/HoS1JIBZPOJNHyAiEAhxKcPK06ZqC10cMeVh/2CDDFYGuAyxQWGLYrOS4lk3M="}],"size":12376,"noattachment":false,"key":"/pnpm-shrinkwrap/-/pnpm-shrinkwrap-6.4.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pnpm-shrinkwrap_6.4.0_1525864778975_0.7774061893129114"},"_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":1525864779026,"_cnpm_publish_time":1525864779026,"dist-tags":{"latest":"8.1.6","next":"8.0.0-2"}}