{"bugs":{"url":"https://github.com/pnpm/pnpm-shrinkwrap/issues"},"dist":{"shasum":"17988af002c22b2690db66311add9b040312fe5a","tarball":"https://registry.npmjs.org/pnpm-shrinkwrap/-/pnpm-shrinkwrap-7.0.0.tgz","fileCount":45,"integrity":"sha512-mpzJmtjtbE0gJfqhK6bl9RDzbl9FMAffLXIwpwwRGzzI/v/C/KmYulxla+kHxd60wpclGiXxRhHDObPdYCFNXg==","signatures":[{"sig":"MEUCIQDUThaevf2Z73U9MbhpIEXIZElArGz7Y0BJffP5wcK9lgIgbgVQOYj1TpWuHP6Uhkg3GbIPBgfx7BoIjRyaxe5qUP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":46278,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbQq7bCRA9TVsSAnZWagAA0LsP/1fBiemNocKSdwMzQ4nF\nQx9vYowhN7k/5fQz1AR5al5rkONeWA341DjgDbN0zRgXHmq37bLZ9ftVS0iH\nHXNrb/Vzq5Tx+R/79Gblm3vG/796xHvvY1C7HQMn247hmFT1bi3Z1SASB3T0\nYM9UproWotxSJeppDCPagb2oRb4+aMdZDMVF/ADkGfhdYV1MGd75BOsnv7++\nfrTJxCwKqCH45g/is1C39vLPefb/C5gUSOt/TM2WGlnKaYaaFZWMPce3Ailq\nLq71hvX2EknEZaYA0dbcEoNQzfZ7oX5ryr7UKgr7skp7yRCnuT0F2jW5C7hj\nVx1/P+Ot8mSt7igHwN2QoswO31O047o6H884fvF2drMBF4nViwvMqw1V5gXd\n7HPGtU2TChL7yhaTi79+/LxQMK+xD3y2CDd6SY3igRwX9bLBdG08K4faXito\nAxjZrotX2uP5D9MbBn5OwERxJ6IqKPsh87SKOelZMKJIdm/mnobVXbFo1tt4\noXqAkI8cMVBH4SYPlDcXq8QMgRTrxOsR5ljYC3KJDs+2zVBCKb8rOgbZ4PIg\nk29WvDc25gGyHiR4gb8sB4srAM0TLXQ+r2wY6f9XAKfEupGyouZ35HllirDO\nf9boyfd0ij8vCBdw6emF6EZ3NsRpXoOj/LQmsXfxWO5ZMv5o8+n+N/vVTmky\njwHm\r\n=yOyV\r\n-----END PGP SIGNATURE-----\r\n"},"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> Read/write/prune and other utils for dealing with shrinkwrap.yaml files\n\n[![Build Status](https://travis-ci.org/pnpm/pnpm-shrinkwrap.svg?branch=master)](https://travis-ci.org/pnpm/pnpm-shrinkwrap)\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","engines":{"node":">=6"},"gitHead":"92dc2a773e800ce6ee2de7e031a101df3260c6aa","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":"6.1.0","description":"Read/write/prune and other utils for dealing with shrinkwrap.yaml files","directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_nodeVersion":"9.10.1","dependencies":{"ramda":"^0.25.0","js-yaml":"^3.8.4","@pnpm/types":"^1.7.0","@types/node":"^10.0.6","rimraf-then":"^1.0.1","@types/ramda":"^0.25.12","@types/js-yaml":"^3.10.1","load-yaml-file":"^0.1.0","mkdirp-promise":"^5.0.1","util.promisify":"^1.0.0","dependency-path":"^1.2.1","write-file-atomic":"^2.1.0","@pnpm/resolver-base":"^1.0.0","get-npm-tarball-url":"^2.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tape":"^4.6.3","tempy":"^0.2.1","rimraf":"^2.6.1","tslint":"^5.8.0","ts-node":"^7.0.0","yaml-tag":"github:zkochan/yaml-tag","typescript":"^2.3.4","@types/tape":"^4.2.30","@pnpm/logger":"^2.0.1","@types/tempy":"^0.1.0","package-preview":"^1.0.0"},"peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/pnpm-shrinkwrap_7.0.0_1531096794958_0.27662089213436114","host":"s3://npm-registry-packages"},"_id":"pnpm-shrinkwrap@7.0.0","version":"7.0.0"}