{"_id":"@pnpm/shrinkwrap-file","_rev":"946765","name":"@pnpm/shrinkwrap-file","description":"Read/write shrinkwrap.yaml files","dist-tags":{"latest":"1.0.1","next":"2.0.0-1","next-major":"2.0.0-2"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2021-09-23T02:15:54.000Z","created":"2018-12-09T01:01:07.164Z","2.0.0-2":"2019-03-04T10:08:43.281Z","2.0.0-1":"2019-01-30T19:09:52.894Z","2.0.0-0":"2019-01-24T21:15:51.517Z","1.0.1":"2019-01-05T17:47:09.691Z","1.0.0":"2018-12-09T01:01:07.164Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/master/packages/shrinkwrap-file"},"versions":{"2.0.0-2":{"name":"@pnpm/shrinkwrap-file","version":"2.0.0-2","description":"Read/write shrinkwrap.yaml files","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=8"},"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-file"},"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-file#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/shrinkwrap-file":"link:","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.33","@types/tempy":"0.2.0","rimraf":"2.6.3","tape":"4.10.1","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.13.1","typescript":"3.3.3333","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/constants":"1.0.0-0","@pnpm/shrinkwrap-types":"2.0.0-0","@pnpm/types":"2.0.0","@types/js-yaml":"3.12.0","@types/node":"11.9.5","@types/ramda":"0.25.39","js-yaml":"3.12.2","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.1","read-yaml-file":"1.1.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.4.2"},"readmeFilename":"README.md","_id":"@pnpm/shrinkwrap-file@2.0.0-2","_nodeVersion":"10.12.0","_npmVersion":"6.7.0","dist":{"shasum":"1eb7015533aa602fcd7a57ff0bd00d46ee6cbe42","size":7824,"noattachment":false,"key":"/@pnpm/shrinkwrap-file/-/@pnpm/shrinkwrap-file-2.0.0-2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/shrinkwrap-file/download/@pnpm/shrinkwrap-file-2.0.0-2.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shrinkwrap-file_2.0.0-2_1551694123087_0.39454332525402"},"_hasShrinkwrap":false,"publish_time":1551694123281,"_cnpm_publish_time":1551694123281},"2.0.0-1":{"name":"@pnpm/shrinkwrap-file","version":"2.0.0-1","description":"Read/write shrinkwrap.yaml files","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=8"},"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-file"},"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-file#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/shrinkwrap-file":"link:","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.33","@types/tempy":"0.2.0","rimraf":"2.6.3","tape":"4.9.2","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.12.1","typescript":"3.2.4","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/shrinkwrap-types":"2.0.0-0","@pnpm/types":"2.0.0","@types/js-yaml":"3.12.0","@types/node":"10.12.18","@types/ramda":"0.25.39","js-yaml":"3.12.1","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.1","read-yaml-file":"1.1.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.4.2"},"readmeFilename":"README.md","_id":"@pnpm/shrinkwrap-file@2.0.0-1","_nodeVersion":"10.12.0","_npmVersion":"6.7.0","dist":{"shasum":"2609be135446c28a67a7cb8443b91992a6ed4dee","size":8007,"noattachment":false,"key":"/@pnpm/shrinkwrap-file/-/@pnpm/shrinkwrap-file-2.0.0-1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/shrinkwrap-file/download/@pnpm/shrinkwrap-file-2.0.0-1.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shrinkwrap-file_2.0.0-1_1548875392750_0.13642020661796472"},"_hasShrinkwrap":false,"publish_time":1548875392894,"_cnpm_publish_time":1548875392894},"2.0.0-0":{"name":"@pnpm/shrinkwrap-file","version":"2.0.0-0","description":"Read/write 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-file"},"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-file#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/shrinkwrap-file":"link:","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.33","@types/tempy":"0.2.0","rimraf":"2.6.3","tape":"4.9.2","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.12.1","typescript":"3.2.4","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/shrinkwrap-types":"2.0.0-0","@pnpm/types":"2.0.0","@types/js-yaml":"3.11.4","@types/node":"10.12.18","@types/ramda":"0.25.39","js-yaml":"3.12.1","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.1","read-yaml-file":"1.1.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.3.0"},"readmeFilename":"README.md","_id":"@pnpm/shrinkwrap-file@2.0.0-0","_nodeVersion":"10.12.0","_npmVersion":"6.6.0","dist":{"shasum":"b29edf40a994384ece3fce0aa7e0f26b6c33080b","size":8301,"noattachment":false,"key":"/@pnpm/shrinkwrap-file/-/@pnpm/shrinkwrap-file-2.0.0-0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/shrinkwrap-file/download/@pnpm/shrinkwrap-file-2.0.0-0.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shrinkwrap-file_2.0.0-0_1548364551398_0.15016371513260385"},"_hasShrinkwrap":false,"publish_time":1548364551517,"_cnpm_publish_time":1548364551517},"1.0.1":{"name":"@pnpm/shrinkwrap-file","version":"1.0.1","description":"Read/write 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-file"},"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-file#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/shrinkwrap-file":"link:","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.33","@types/tempy":"0.2.0","rimraf":"2.6.3","tape":"4.9.2","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.12.0","typescript":"3.2.2","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/shrinkwrap-types":"1.0.0","@pnpm/types":"2.0.0","@types/js-yaml":"3.11.4","@types/node":"10.12.18","@types/ramda":"0.25.39","js-yaml":"3.12.1","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.1","read-yaml-file":"1.1.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.3.0"},"_id":"@pnpm/shrinkwrap-file@1.0.1","_npmVersion":"6.5.0","_nodeVersion":"10.12.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"76713f1f6da975e2ebcdea9d4e3be1a06263de82","size":8735,"noattachment":false,"key":"/@pnpm/shrinkwrap-file/-/@pnpm/shrinkwrap-file-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/shrinkwrap-file/download/@pnpm/shrinkwrap-file-1.0.1.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shrinkwrap-file_1.0.1_1546710429569_0.5597041080100129"},"_hasShrinkwrap":false,"publish_time":1546710429691,"_cnpm_publish_time":1546710429691},"1.0.0":{"name":"@pnpm/shrinkwrap-file","version":"1.0.0","description":"Read/write 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-file"},"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-file#readme","peerDependencies":{"@pnpm/logger":">=2.0.1 <3.0.0"},"devDependencies":{"@pnpm/logger":"2.1.0","@pnpm/shrinkwrap-file":"link:","@pnpm/tslint-config":"0.0.0","@types/tape":"4.2.32","@types/tempy":"0.2.0","rimraf":"2.6.2","tape":"4.9.1","tempy":"0.2.1","ts-node":"6.2.0","tslint":"5.11.0","typescript":"3.2.2","write-yaml-file":"2.0.0","yaml-tag":"1.1.0"},"dependencies":{"@pnpm/shrinkwrap-types":"1.0.0","@pnpm/types":"2.0.0","@types/js-yaml":"3.11.2","@types/node":"10.12.12","@types/ramda":"0.25.39","js-yaml":"3.12.0","mkdirp-promise":"5.0.1","normalize-path":"3.0.0","ramda":"0.26.1","read-yaml-file":"1.1.0","rimraf-then":"1.0.1","util.promisify":"1.0.0","write-file-atomic":"2.3.0"},"_id":"@pnpm/shrinkwrap-file@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"shasum":"93a93bfe888cf2b3a34532018c74513638ff72ac","size":8734,"noattachment":false,"key":"/@pnpm/shrinkwrap-file/-/@pnpm/shrinkwrap-file-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/shrinkwrap-file/download/@pnpm/shrinkwrap-file-1.0.0.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/shrinkwrap-file_1.0.0_1544317267026_0.5740240936678203"},"_hasShrinkwrap":false,"publish_time":1544317267164,"_cnpm_publish_time":1544317267164}},"readme":"# @pnpm/shrinkwrap-file\n\n> Read/write 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## License\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/pnpm/pnpm/blob/master/packages/shrinkwrap-file#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"license":"MIT"}