{"_id":"@pnpm/check-package","_rev":"10-777872024e82c9f4adbd5456759f9bc9","name":"@pnpm/check-package","description":"Checks the integrity of a package","dist-tags":{"latest":"3.0.1","next":"3.0.1"},"versions":{"1.0.0":{"name":"@pnpm/check-package","version":"1.0.0","description":"Checks the integrity of a package","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib"],"engines":{"node":">=4"},"scripts":{"lint":"tslint -c tslint.json --project .","tsc":"rimraf lib && tsc","test":"npm run lint && preview && ts-node test && mos t","md":"mos","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"keywords":["pnpm","integrity","package","store"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/check-package/issues"},"homepage":"https://github.com/pnpm/check-package#readme","dependencies":{"@types/load-json-file":"^2.0.7","dint":"^2.0.0","load-json-file":"^4.0.0"},"devDependencies":{"@types/node":"^8.0.57","@types/tape":"^4.2.31","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.1","rimraf":"^2.6.2","tape":"^4.8.0","ts-node":"^3.3.0","tslint":"^5.8.0","typescript":"^2.6.1"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"gitHead":"c35800fc9c4c94a74ccb0b34554fc11e4dcc35f7","_id":"@pnpm/check-package@1.0.0","_npmVersion":"5.5.1","_nodeVersion":"6.11.4","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-rN+hiOjGtxwwus7c/E0xkCs9prBeXzZCSCW/Q3k2WdHGSRNLAepr777iv+i2eqTfz9vXlTF0rLZOGi62ujzwYA==","shasum":"c72ef13965b88d37d9b35eaa6990334488693df5","tarball":"https://registry.npmjs.org/@pnpm/check-package/-/check-package-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBUMd2154bmneg0GFRoqSFnwa2Fs5noK7DsNOGlmbpNrAiEA2pf71ji/RSXcWCP3R+1D6+c38U0rvSyEt+/NlOmPSCk="}]},"maintainers":[{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/check-package-1.0.0.tgz_1512932730616_0.48853056016378105"},"directories":{}},"2.0.0":{"name":"@pnpm/check-package","version":"2.0.0","description":"Checks the integrity of a package","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib"],"engines":{"node":">=6"},"scripts":{"lint":"tslint -c tslint.json --project .","tsc":"rimraf lib && tsc","test":"npm run lint && preview && ts-node test && mos t","md":"mos","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"keywords":["pnpm","integrity","package","store"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/check-package/issues"},"homepage":"https://github.com/pnpm/check-package#readme","dependencies":{"@types/load-json-file":"^2.0.7","dint":"^3.0.2","load-json-file":"^5.0.0"},"devDependencies":{"@types/node":"^10.7.0","@types/tape":"^4.2.31","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.1","rimraf":"^2.6.2","tape":"^4.8.0","ts-node":"^7.0.1","tslint":"^5.8.0","typescript":"^3.0.1"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"gitHead":"a23f45a082cb67d679650b6a7af21a27739a5c31","_id":"@pnpm/check-package@2.0.0","_npmVersion":"6.3.0","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-RxNNNvEO8Ogl6VGOx1t9ET5MgewcRSPCUriRMnIMgUguynG1hbc4uBkJ5WqCPCuwk2glvPvMShy6RySuYj5GHw==","shasum":"ed77d6840de171a8356425606e701a591b110cb9","tarball":"https://registry.npmjs.org/@pnpm/check-package/-/check-package-2.0.0.tgz","fileCount":6,"unpackedSize":5757,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbczVvCRA9TVsSAnZWagAAVWYQAJNAx41fiqM1ArS1w89s\nfFCMTa792uu6JEqewEeAfAsSFGy1CBs7l7VqGGPVxfSTmOgQJ1bYGJu7Uvmh\noPR22VBOS8LGNbAsBQtdahhhjdjNh80LdINt0Q3iuaneXnsuw44liO1Rm34m\njNeb49sLja8VmW1V9XHLvA8Dfc5OWsx8BgP8oyJxdbb4VBDpLFZLCYM0pPgr\ne6nl9eYg2kWAMkd5PQjxH4VQ7dZqhFAWQV2b39B4oiqJZmB2SAmAWoUV7beR\npsbn9YZlyflRRYBVD6rgO1p5S6Mb2vvUTbR2oDaYGLwMTeZ+Ud0MWoxcmWzj\nai7BOEvXprosyQO+q97weQgytWF6umDU3Zd2MU8rUQOszss62H5GDrcNQg6l\na6EZqJzE/hDJV8XXTutOSEo/elXRp0k8OAojbg4sEf/R3cVmWs7iGJpRKwPJ\nMySgjswWom1qxsgCy3YHGCnwQoHb1cRECHbuOz/KOJ4rX7FqJcDp0rKj/kVV\nL3YQ4Wbr41J1hWKswmAPofTSHZslBEDmJB8XwVPs/shZULVvTB8s2kod4qUl\nK+j3QlkZLWNb44M2z3355CF6wa6oB0cCQdMfgG7cnCzT8ZQPeJ5TZppG8/N3\nZ0TrBBhTq3nnqbWu/EEOmxaQA7X8lcPjZN8/l5i+nhZraLpGbqtGRWVMBvOY\nSH2V\r\n=rTPQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF8qObVEg8DF2yy3MZBNGD/iEVBfb8oYZMM+Btk4C2j5AiBxEkzMa3dbiLgDaqymrakJoIrg+GvxgwQUOYh6iNWsSw=="}]},"maintainers":[{"email":"emanuele.tamponi@gmail.com","name":"etamponi"},{"email":"zoltan.kochan@gmail.com","name":"pnpmuser"},{"email":"z@kochan.io","name":"zkochan"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/check-package_2.0.0_1534276974937_0.8341186736618043"},"_hasShrinkwrap":false},"3.0.0":{"name":"@pnpm/check-package","version":"3.0.0","description":"Checks the integrity of a package","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=8"},"scripts":{"lint":"tslint -c tslint.json --project .","tsc":"rimraf lib && tsc","test:readme":"mos t","test":"npm run lint && preview && ts-node test","md":"mos","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"keywords":["pnpm","integrity","package","store"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/check-package/issues"},"homepage":"https://github.com/pnpm/check-package#readme","dependencies":{"@types/load-json-file":"^2.0.7","dint":"^4.0.0","load-json-file":"^5.0.0"},"devDependencies":{"@types/node":"^10.7.0 || 11","@types/tape":"^4.2.31","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^2.0.0","rimraf":"^2.6.2","tape":"^4.8.0","ts-node":"^8.0.1","tslint":"^5.8.0","typescript":"^3.0.1"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"gitHead":"fe97c25451fb302d0a7ec6fc15ce36c664e6cfdb","_id":"@pnpm/check-package@3.0.0","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-0B+ueFP1gzcmqV/ZprHtLvB2nSgg2zrhHWHJzWAAraodbera3ZLZl0tiHF/ksFEpJjEXFCGh1aXl7uOBkkDwjA==","shasum":"bf48d6a7c857ab175fbc6c8b1f1bf45b3f8331ca","tarball":"https://registry.npmjs.org/@pnpm/check-package/-/check-package-3.0.0.tgz","fileCount":6,"unpackedSize":5087,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjBnTCRA9TVsSAnZWagAAif8P/3rZNFt1nvotlXv3tzf2\nSlMTWolHgTp3EpRPC/NlyKUG+hU9t/nb8Pqc9WOqZ6vM4tbHMr21nqGrzUgG\nRh2xlQap8qWDFbXdhgjJMq/i+HDoab3GihKTGCF0aaQfWjl8Wh9siP3SWSx6\nMdN13WWkfJLYQdefTbDc/b/KTj0V7wN3gCmvZXvOYd5GrRqf5UkRt5xUfPE7\nWwXhvHBz59JX9FKSutALBG4TDRp10qcsIV6TNVypCird0MbYAyE1/RyJuOFl\nRX+Grj3lmPYGnmoAXB0SERA5JhnnHPCvdzfDajHqgWLryEd3AOu3bkl/AwAW\n9yTemd3CupXlBwF1A3o7EPeyt1ECvwNwORJ0x1yi76EYZjfr8n0j+wtFaQI2\niqLNodFtUWEqHkT0nNy5yEx3Ps0kw84RVaucOpSkahJQ/YIsGdqbi0viuE18\noF3V6/HtCdDYtUEZU+HV0qkQ6NNnxVUicN9u3LURHszevMyAh5qpLE7A9G4v\nQH3VLg5ZyKRxqjkB16pdV5IwL1FaGoADHxe3ZUWtsoRIf/G0aczHvINL47b8\nZb/9l04w2jIkrAHYu6SPY8v8Ai5WNg/GVDU4ajAVmEgcTyyUt6zYirkfkfRF\nMe0FdciE2X9GTGWdzTpAW1fhQKBtS9O9ojumHQ3ewHhQxn9qz30Mh46xKoDv\nQ/Qt\r\n=1V2/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH4etGC9yLNjF46CtSN3JKy82HSqbYyV5bmw22nA5PndAiAIryrdDuHuYOVoMkJNvFnruz76XJwCNBCWiyG86O+mCQ=="}]},"maintainers":[{"email":"emanuele.tamponi@gmail.com","name":"etamponi"},{"email":"zoltan.kochan@gmail.com","name":"pnpmuser"},{"email":"z@kochan.io","name":"zkochan"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/check-package_3.0.0_1552685522347_0.5640672198997378"},"_hasShrinkwrap":false},"3.0.1":{"name":"@pnpm/check-package","version":"3.0.1","description":"Checks the integrity of a package","main":"lib/index.js","typings":"lib/index.d.ts","engines":{"node":">=8.15"},"scripts":{"lint":"tslint -c tslint.json --project .","tsc":"rimraf lib && tsc","test:readme":"mos t","test":"npm run lint && preview && ts-node test","md":"mos","prepublishOnly":"npm run tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"keywords":["pnpm","integrity","package","store"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/check-package/issues"},"homepage":"https://github.com/pnpm/check-package#readme","dependencies":{"dint":"^4.0.0","load-json-file":"^6.0.0"},"devDependencies":{"@types/node":"^10.7.0 || 11","@types/tape":"^4.2.31","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^2.0.0","rimraf":"^2.6.2","tape":"^4.8.0","ts-node":"^8.0.1","tslint":"^5.8.0","typescript":"^3.0.1"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"readme":"# @pnpm/check-package\n\n> Checks the integrity of a package\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/check-package.svg)](https://www.npmjs.com/package/@pnpm/check-package) [![Build Status](https://img.shields.io/travis/pnpm/check-package/master.svg)](https://travis-ci.org/pnpm/check-package)\n<!--/@-->\n\nWhen [pnpm](https://github.com/pnpm/pnpm) saves a package to the store, it creates an `integrity.json` file.\n`integrity.json` contains a hash for each file of the package.\n`@pnpm/check-package` can check whether the resources of the package were modified, using `integrity.json`.\n\n## Install\n\nInstall it via npm.\n\n    npm install @pnpm/npm-resolver\n\n## Usage\n\n<!--@example('example.js')-->\n```js\n'use strict'\nconst checkPackage = require('@pnpm/check-package').default\n\ncheckPackage('test/fixtures/good/pkg')\n  .then(ok => {\n    console.log(Boolean(ok))\n    //> true\n  })\n  .catch(err => console.error(err))\n```\n<!--/@-->\n\n## API\n\n### `checkPackage(packagePath) => Promise<matchedIntegrity | false>`\n\nIf the package has been touched, `false` is returned. If the package has its \"canonical\" form, the content\nof `integrity.json` is returned.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","readmeFilename":"README.md","gitHead":"a03e6c5902fae4dbe970268ddf4ef3c454ee87bc","_id":"@pnpm/check-package@3.0.1","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-+m1O/rFyR0h60IrfoOKVuzwsZCYx4vYF5NFTMFzDNJ34D4EH8Y+nT/EIncAHQ6Awavz2I5FlhRbiYvWA2DZFbw==","shasum":"23398b8bc500ebbbb1a35d2c68ca074fd070966f","tarball":"https://registry.npmjs.org/@pnpm/check-package/-/check-package-3.0.1.tgz","fileCount":6,"unpackedSize":5034,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcxH2tCRA9TVsSAnZWagAAe4wQAIWVZu7CsnRXisPTv6O+\nIuKhEpEiAD2X/qZpAqvO4+294/e9MFSaC6VmB9KNKvq3mPMgUOpueUT07PLZ\nCryLC2CSbY6F19iE75RFh5VGmu9Xo5xcisb9lrrENJ9+zX6xApg0Cj7cbASt\naD2WbHGKo0JvGYBl2IdtYOW6kynK6gODaCKrdqbZWVeEIA0gT/xzcIuaJXYD\nFN9qim3IyaOapmKP80BMiNkY436RfByUbS5gP1UcEpRZfWnMqutGYDAx11H4\nJIVG99U2oPWzhEp3JfzIZcMQVztYuLmziSvpVG/P/ncnSV25FTSEI173OBWD\ngvEEwfIEa0z+CYCumOFTC0ZkJF0VNZcsJ9FKZTZPonMxOCGYsrJdj3+5Z+5x\nR66I8nzDksn32BqVTr+13dzR/b6s6xX3kmNIXPun+hADjfFs6cWtfnxdxcUd\niCALU2r4UdpwMh2wso0jDb1iNCevDrqLo08MtFkYKVhc4/NcqgYU4oNJYHTc\n8fomWZqAXDbf3GPeco1gQU0oA+ckM2fac5t/hCNxNplIjcG10q+ujTkuGbo1\nQDTDHFbjXibbtUZfwCRWD+X3KmhB7bH34SkWVdmtvm1w9jer/FKxp6cc6dFQ\nPeRbiolumwtNHCHteEexdCMzo4rb/k1lCP69v7No6l/8vbSnVthkq4BzN1i0\nNH6z\r\n=w80z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChgkT5dlq90Y+23jaYzPcfdSwY5EgT+UUt/QIbPFSKdgIgKlkc9XUSKAOZi+JxaAZWQHjWiNmRB2SWDBJmXBWQWVo="}]},"maintainers":[{"email":"emanuele.tamponi@gmail.com","name":"etamponi"},{"email":"zoltan.kochan@gmail.com","name":"pnpmuser"},{"email":"z@kochan.io","name":"zkochan"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/check-package_3.0.1_1556381100584_0.7184558055763552"},"_hasShrinkwrap":false}},"readme":"# @pnpm/check-package\n\n> Checks the integrity of a package\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/check-package.svg)](https://www.npmjs.com/package/@pnpm/check-package) [![Build Status](https://img.shields.io/travis/pnpm/check-package/master.svg)](https://travis-ci.org/pnpm/check-package)\n<!--/@-->\n\nWhen [pnpm](https://github.com/pnpm/pnpm) saves a package to the store, it creates an `integrity.json` file.\n`integrity.json` contains a hash for each file of the package.\n`@pnpm/check-package` can check whether the resources of the package were modified, using `integrity.json`.\n\n## Install\n\nInstall it via npm.\n\n    npm install @pnpm/npm-resolver\n\n## Usage\n\n<!--@example('example.js')-->\n```js\n'use strict'\nconst checkPackage = require('@pnpm/check-package').default\n\ncheckPackage('test/fixtures/good/pkg')\n  .then(ok => {\n    console.log(Boolean(ok))\n    //> true\n  })\n  .catch(err => console.error(err))\n```\n<!--/@-->\n\n## API\n\n### `checkPackage(packagePath) => Promise<matchedIntegrity | false>`\n\nIf the package has been touched, `false` is returned. If the package has its \"canonical\" form, the content\nof `integrity.json` is returned.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","maintainers":[{"email":"zoltan.kochan@gmail.com","name":"pnpmuser"},{"email":"z@kochan.io","name":"zkochan"}],"time":{"modified":"2022-04-06T15:33:56.920Z","created":"2017-12-10T19:05:31.585Z","1.0.0":"2017-12-10T19:05:31.585Z","2.0.0":"2018-08-14T20:02:55.008Z","3.0.0":"2019-03-15T21:32:02.468Z","3.0.1":"2019-04-27T16:05:00.769Z"},"homepage":"https://github.com/pnpm/check-package#readme","keywords":["pnpm","integrity","package","store"],"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"bugs":{"url":"https://github.com/pnpm/check-package/issues"},"license":"MIT","readmeFilename":"README.md"}