UNPKG

pnpm

Version:

Fast, disk space efficient package manager

141 lines (140 loc) 5.84 kB
{ "_args": [ [ { "raw": "@pnpm/check-package@3.0.0", "scope": "@pnpm", "escapedName": "@pnpm%2fcheck-package", "name": "@pnpm/check-package", "rawSpec": "3.0.0", "spec": "3.0.0", "type": "version" }, "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/@pnpm/package-requester" ] ], "_from": "@pnpm/check-package@3.0.0", "_hasShrinkwrap": false, "_id": "@pnpm/check-package@3.0.0", "_location": "/@pnpm/check-package", "_nodeVersion": "10.12.0", "_npmOperationalInternal": { "host": "s3://npm-registry-packages", "tmp": "tmp/check-package_3.0.0_1552685522347_0.5640672198997378" }, "_npmUser": { "name": "zkochan", "email": "z@kochan.io" }, "_npmVersion": "6.9.0", "_phantomChildren": {}, "_requested": { "raw": "@pnpm/check-package@3.0.0", "scope": "@pnpm", "escapedName": "@pnpm%2fcheck-package", "name": "@pnpm/check-package", "rawSpec": "3.0.0", "spec": "3.0.0", "type": "version" }, "_requiredBy": [ "/@pnpm/package-requester", "/supi" ], "_resolved": "https://registry.npmjs.org/@pnpm/check-package/-/check-package-3.0.0.tgz", "_shasum": "bf48d6a7c857ab175fbc6c8b1f1bf45b3f8331ca", "_shrinkwrap": null, "_spec": "@pnpm/check-package@3.0.0", "_where": "/home/zoltan/src/pnpm/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": "^4.0.0", "load-json-file": "^5.0.0" }, "description": "Checks the integrity of a package", "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" }, "directories": {}, "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" }, "engines": { "node": ">=8" }, "files": [ "lib" ], "gitHead": "fe97c25451fb302d0a7ec6fc15ce36c664e6cfdb", "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[![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", "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", "test:readme": "mos t", "tsc": "rimraf lib && tsc" }, "typings": "lib/index.d.ts", "version": "3.0.0" }