pnpm
Version:
Fast, disk space efficient package manager
137 lines (136 loc) • 6.01 kB
JSON
{
"_args": [
[
{
"raw": "dependency-path@3.0.4",
"scope": null,
"escapedName": "dependency-path",
"name": "dependency-path",
"rawSpec": "3.0.4",
"spec": "3.0.4",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/dependencies-hierarchy"
]
],
"_from": "dependency-path@3.0.4",
"_hasShrinkwrap": false,
"_id": "dependency-path@3.0.4",
"_location": "/dependency-path",
"_nodeVersion": "10.12.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/dependency-path_3.0.4_1556137031823_0.029763994694766094"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "6.9.0",
"_phantomChildren": {},
"_requested": {
"raw": "dependency-path@3.0.4",
"scope": null,
"escapedName": "dependency-path",
"name": "dependency-path",
"rawSpec": "3.0.4",
"spec": "3.0.4",
"type": "version"
},
"_requiredBy": [
"/@pnpm/filter-lockfile",
"/@pnpm/headless",
"/@pnpm/lockfile-utils",
"/@pnpm/modules-cleaner",
"/@pnpm/outdated",
"/@pnpm/prune-lockfile",
"/@pnpm/resolve-dependencies",
"/@pnpm/shamefully-flatten",
"/dependencies-hierarchy",
"/supi"
],
"_resolved": "https://registry.npmjs.org/dependency-path/-/dependency-path-3.0.4.tgz",
"_shasum": "9c3405c3808d364bc2b3fbbb6252afbe8f9f929e",
"_shrinkwrap": null,
"_spec": "dependency-path@3.0.4",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/dependencies-hierarchy",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"dependencies": {
"@pnpm/types": "3.2.0",
"@types/semver": "6.0.0",
"encode-registry": "1.1.0",
"semver": "6.0.0"
},
"description": "Utilities for working with symlinked node_modules",
"devDependencies": {
"@pnpm/tslint-config": "0.0.0",
"@types/tape": "^4.2.30",
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"tape": "4.10.1",
"ts-node": "8.1.0",
"tslint": "5.16.0",
"typescript": "3.4.5"
},
"directories": {},
"dist": {
"integrity": "sha512-nbvBXsYpwkfnlCFXbmVsU4Hgj8NkYwFSLkyyW5XgktXspK1zIA32qDU15h9D4yTP3/eaF/80xID+x2hLuvDJSA==",
"shasum": "9c3405c3808d364bc2b3fbbb6252afbe8f9f929e",
"tarball": "https://registry.npmjs.org/dependency-path/-/dependency-path-3.0.4.tgz",
"fileCount": 6,
"unpackedSize": 12627,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwMRICRA9TVsSAnZWagAA1YEQAI5QSPjzT5pvJGS3N03l\nhl02ThgrIpxmK0u3gWRM50+I5gqzw/1bwM+1RgFeDnFnnR7lDSNR5aVxVryl\nCBbFQAKTWba98XK6PajzzZe5KiZb08tDB8KZDdgp21dxPXTt3eZVoweSO9cl\ndYKcUCiduiD7bhCvL5AJ9LN7RbbtJVxlo29o8C/sEsPgn/EAKz3x0DTfUsEm\n87U7WtDjkYAtx82MJB8Swq/CcB+XaBVIWuwHgPDsQHHtC8ynKoRE5ai1t5bZ\nUQNwES8FNHZO+h+/i0wf+kpDWTrKwzaAM6fJuZTMZ7t9iT5Sbs4ohTyAWV/v\nbOtyIg7zqDexiQS3rYS2og9jOJU3lKC1aiTMhnDZ55x+QKQBn1CSl2eqjGsa\ncQ1D+EJQU72YqcF6Vd54LcUOkmSxBrxomWPpXJMKjAPs2KEBQ7iCvW2ZD/sh\njTBGAYDLNvF64/zGlthzwzpaX9dVye60eUZeJDl/q5MZ1PeJ4t8mLvSZc3zI\nk776HAMSl39EmvtqMYJ8hi3g00bC3hsBKu2A0Op28QN8i6VBTy3GqkIqgo8p\nYYh0gU8yHpYisV3BldMIG7GaXZSXUaz5l2QcRFJ7bABWA2lN2rwuIjDO3In2\n5qJaxSvjEuaqs0H6xIZcYADS9GJpN2n1VleZ43rN+BoWwBCAoloF6prYm2BY\nGgEg\r\n=1U3A\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=8.15"
},
"files": [
"lib"
],
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/dependency-path#readme",
"keywords": [
"node_modules",
"pnpm",
"path"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "zkochan",
"email": "zoltan.kochan@gmail.com"
}
],
"mos": {
"plugins": [
"readme"
],
"installation": {
"useShortAlias": true
}
},
"name": "dependency-path",
"optionalDependencies": {},
"readme": "# dependency-path\n\n> Utilities for working with symlinked node_modules\n\n<!--@shields('npm')-->\n[](https://www.npmjs.com/package/dependency-path)\n<!--/@-->\n\nLike `path` but for packages in a symlinked `node_modules`. Symlinked `node_modules` is a unique dependencies layout that\n[pnpm](https://github.com/pnpm/pnpm) creates.\n\n## Installation\n\n```sh\nnpm i -S dependency-path\n```\n\n## Usage\n\n<!--@example('./example.js')-->\n```js\nconst dependencyPath = require('dependency-path')\n\nconst registry = 'https://registry.npmjs.org/'\n\nconsole.log(dependencyPath.isAbsolute('/foo/1.0.0'))\n//> false\n\n// it is confusing currently because relative starts with /.\n// It will be changed in the future to vice versa\nconsole.log(dependencyPath.resolve(registry, '/foo/1.0.0'))\n//> registry.npmjs.org/foo/1.0.0\n\nconsole.log(dependencyPath.relative(registry, 'registry.npmjs.org/foo/1.0.0'))\n//> /foo/1.0.0\n\nconsole.log(dependencyPath.refToAbsolute('1.0.1', 'foo', registry))\n//> registry.npmjs.org/foo/1.0.1\n\nconsole.log(dependencyPath.refToAbsolute('github.com/foo/bar/twe0jger043t0ew', 'foo', registry))\n//> github.com/foo/bar/twe0jger043t0ew\n\nconsole.log(dependencyPath.refToRelative('1.0.1', 'foo', registry))\n//> /foo/1.0.1\n\nconsole.log(dependencyPath.parse('/foo/2.0.0'))\n//> { isAbsolute: false, name: 'foo', version: '2.0.0' }\n```\n<!--/@-->\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "https://github.com/pnpm/pnpm/blob/master/packages/dependency-path"
},
"scripts": {
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"md": "mos",
"prepublishOnly": "tsc",
"test": "npm run tsc && pnpm link . && npm run lint && ts-node test.ts",
"tsc": "tsc"
},
"typings": "lib/index.d.ts",
"version": "3.0.4"
}