@zkochan/pnpm
Version:
Fast, disk space efficient package manager
140 lines (139 loc) • 5.8 kB
JSON
{
"_args": [
[
{
"raw": "@pnpm/check-package@2.0.0",
"scope": "@pnpm",
"escapedName": "@pnpm%2fcheck-package",
"name": "@pnpm/check-package",
"rawSpec": "2.0.0",
"spec": "2.0.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/package-requester"
]
],
"_from": "@pnpm/check-package@2.0.0",
"_id": "@pnpm/check-package@2.0.0",
"_inCache": true,
"_location": "/@pnpm/check-package",
"_nodeVersion": "9.10.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/check-package_2.0.0_1534276974937_0.8341186736618043"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "6.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "@pnpm/check-package@2.0.0",
"scope": "@pnpm",
"escapedName": "@pnpm%2fcheck-package",
"name": "@pnpm/check-package",
"rawSpec": "2.0.0",
"spec": "2.0.0",
"type": "version"
},
"_requiredBy": [
"/@pnpm/package-requester",
"/supi"
],
"_resolved": "https://registry.npmjs.org/@pnpm/check-package/-/check-package-2.0.0.tgz",
"_shasum": "ed77d6840de171a8356425606e701a591b110cb9",
"_shrinkwrap": null,
"_spec": "@pnpm/check-package@2.0.0",
"_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/@pnpm/package-requester",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/check-package/issues"
},
"dependencies": {
"@types/load-json-file": "^2.0.7",
"dint": "^3.0.2",
"load-json-file": "^5.0.0"
},
"description": "Checks the integrity of a package",
"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"
},
"directories": {},
"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"
},
"engines": {
"node": ">=6"
},
"files": [
"lib"
],
"gitHead": "a23f45a082cb67d679650b6a7af21a27739a5c31",
"homepage": "https://github.com/pnpm/check-package#readme",
"keywords": [
"pnpm",
"integrity",
"package",
"store"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "etamponi",
"email": "emanuele.tamponi@gmail.com"
},
{
"name": "pnpmuser",
"email": "zoltan.kochan@gmail.com"
},
{
"name": "zkochan",
"email": "z@kochan.io"
}
],
"mos": {
"plugins": [
"readme"
],
"installation": {
"useShortAlias": true
}
},
"name": "@pnpm/check-package",
"optionalDependencies": {},
"readme": "# @pnpm/check-package\n\n> Checks the integrity of a package\n\n<!--@shields('npm', 'travis')-->\n[](https://www.npmjs.com/package/@pnpm/check-package) [](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",
"repository": {
"type": "git",
"url": "git+https://github.com/pnpm/check-package.git"
},
"scripts": {
"lint": "tslint -c tslint.json --project .",
"md": "mos",
"prepublishOnly": "npm run tsc",
"test": "npm run lint && preview && ts-node test && mos t",
"tsc": "rimraf lib && tsc"
},
"typings": "lib/index.d.ts",
"version": "2.0.0"
}