{"_id":"@pnpm/check-package","_rev":"943682","name":"@pnpm/check-package","description":"Checks the integrity of a package","dist-tags":{"latest":"3.0.1","next":"3.0.1"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"time":{"modified":"2021-09-23T02:10:13.000Z","created":"2017-12-10T19:05:31.585Z","3.0.1":"2019-04-27T16:05:00.769Z","3.0.0":"2019-03-15T21:32:02.468Z","2.0.0":"2018-08-14T20:02:55.008Z","1.0.0":"2017-12-10T19:05:31.585Z"},"users":{},"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"repository":{"type":"git","url":"git+https://github.com/pnpm/check-package.git"},"versions":{"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}},"readmeFilename":"README.md","gitHead":"a03e6c5902fae4dbe970268ddf4ef3c454ee87bc","_id":"@pnpm/check-package@3.0.1","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"shasum":"23398b8bc500ebbbb1a35d2c68ca074fd070966f","size":2624,"noattachment":false,"key":"/@pnpm/check-package/-/@pnpm/check-package-3.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/check-package/download/@pnpm/check-package-3.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/check-package_3.0.1_1556381100584_0.7184558055763552"},"_hasShrinkwrap":false,"publish_time":1556381100769,"_cnpm_publish_time":1556381100769},"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}},"readmeFilename":"README.md","gitHead":"fe97c25451fb302d0a7ec6fc15ce36c664e6cfdb","_id":"@pnpm/check-package@3.0.0","_nodeVersion":"10.12.0","_npmVersion":"6.9.0","dist":{"shasum":"bf48d6a7c857ab175fbc6c8b1f1bf45b3f8331ca","size":2630,"noattachment":false,"key":"/@pnpm/check-package/-/@pnpm/check-package-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/check-package/download/@pnpm/check-package-3.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/check-package_3.0.0_1552685522347_0.5640672198997378"},"_hasShrinkwrap":false,"publish_time":1552685522468,"_cnpm_publish_time":1552685522468},"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":{"shasum":"ed77d6840de171a8356425606e701a591b110cb9","size":2839,"noattachment":false,"key":"/@pnpm/check-package/-/@pnpm/check-package-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/check-package/download/@pnpm/check-package-2.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/check-package_2.0.0_1534276974937_0.8341186736618043"},"_hasShrinkwrap":false,"publish_time":1534276975008,"_cnpm_publish_time":1534276975008},"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":{"shasum":"c72ef13965b88d37d9b35eaa6990334488693df5","size":2856,"noattachment":false,"key":"/@pnpm/check-package/-/@pnpm/check-package-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@pnpm/check-package/download/@pnpm/check-package-1.0.0.tgz"},"maintainers":[{"name":"pnpmuser","email":"zoltan.kochan@gmail.com"},{"name":"zkochan","email":"zoltan.kochan+github@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/check-package-1.0.0.tgz_1512932730616_0.48853056016378105"},"directories":{},"publish_time":1512932731585,"_hasShrinkwrap":false,"_cnpm_publish_time":1512932731585}},"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","_attachments":{},"readmeFilename":"README.md","homepage":"https://github.com/pnpm/check-package#readme","bugs":{"url":"https://github.com/pnpm/check-package/issues"},"license":"MIT"}