{"name":"pnpm-shrinkwrap","version":"3.0.0","description":"pnpm's shrinkwrap","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib/"],"scripts":{"test":"ts-node test","tsc":"rimraf lib && tsc","prepublish":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/pnpm-shrinkwrap.git"},"keywords":["pnpm","shrinkwrap","lockfile"],"author":{"name":"Zoltan Kochan","email":"zoltan.kochan@gmail.com","url":"https://www.kochan.io"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm-shrinkwrap/issues"},"homepage":"https://github.com/pnpm/pnpm-shrinkwrap#readme","devDependencies":{"@types/tape":"^4.2.30","rimraf":"^2.6.1","tape":"^4.6.3","ts-node":"^3.0.4","typescript":"^2.3.4"},"dependencies":{"@types/node":"^7.0.32","@types/ramda":"^0.0.11","js-yaml":"^3.8.4","load-yaml-file":"^0.1.0","mkdirp-promise":"^5.0.1","pnpm-logger":"^0.3.0","ramda":"^0.24.1","rimraf-then":"^1.0.1","thenify":"^3.3.0","write-file-atomic":"^2.1.0"},"gitHead":"0594562fe028a81218d3f94ae9b2125c93b89c57","_id":"pnpm-shrinkwrap@3.0.0","_npmVersion":"5.1.0","_nodeVersion":"6.9.1","_npmUser":{"name":"zkochan","email":"zoltan.kochan@gmail.com"},"dist":{"integrity":"sha512-OOCbOS3CJCid7hCcBhdh2nhoyyueQjBLuRuI8ENwlJ5LWdr+1H105f96vgD7gYP08uTmNBrSZT/qtQdBHUIdZQ==","shasum":"1ded5a901b63573388e5fbcb4705ae9e31834891","tarball":"http://registry-npm.ywwl.com/pnpm-shrinkwrap/download/pnpm-shrinkwrap-3.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8Clkmrd8XNI5n2w5o/xS9YNeL6MI252nyx2VVWz6M/AIgQ9RI65SkHHHFIn1hK/2Rgs7ZNVaiLDrcj+IUpYzh9d4="}],"size":7656,"noattachment":false,"key":"/pnpm-shrinkwrap/-/pnpm-shrinkwrap-3.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/pnpm-shrinkwrap-3.0.0.tgz_1499601922251_0.7769550331868231"},"directories":{},"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":1499601923508,"_cnpm_publish_time":1499601923508,"dist-tags":{"latest":"8.1.6","next":"8.0.0-2"}}