{"name":"@pnpm/dependency-path","version":"1001.1.3","keywords":["pnpm","pnpm10","node_modules","path"],"license":"MIT","_id":"@pnpm/dependency-path@1001.1.3","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/blob/main/packages/dependency-path#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"f811a6a77322faf9c6dbbc7bb875181d88a1f356","tarball":"http://registry-npm.ywwl.com/@pnpm/dependency-path/download/@pnpm/dependency-path-1001.1.3.tgz","fileCount":6,"integrity":"sha512-ScPXDrlpNNrvV+l4Z1Mh7HjejkltQWfSa3PIaB+WJ3h+PoC1w5blbgfq6ENdHdkRU7L14ie/3MqUGMIx2gZldA==","signatures":[{"sig":"MEUCIQCqM6ndRhrjAq9aFfZEbMHCBMdaOwiY1994oWgYhp9MYAIgKi+uVNCV8pKJXUctIXm2uxc6eh4s70PTv0DDPyzx8Hc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19463,"size":5654,"noattachment":false,"key":"/@pnpm/dependency-path/-/@pnpm/dependency-path-1001.1.3.tgz"},"jest":{"preset":"@pnpm/jest-config"},"main":"lib/index.js","type":"commonjs","_from":"file:pnpm-dependency-path-1001.1.3.tgz","types":"lib/index.d.ts","engines":{"node":">=18.12"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pnpm run compile && pnpm run _test","_test":"jest","compile":"tsc --build && pnpm run lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"_resolved":"/tmp/4eaa14604a351f8b036987d39cb5306b/pnpm-dependency-path-1001.1.3.tgz","_integrity":"sha512-ScPXDrlpNNrvV+l4Z1Mh7HjejkltQWfSa3PIaB+WJ3h+PoC1w5blbgfq6ENdHdkRU7L14ie/3MqUGMIx2gZldA==","repository":{"url":"https://github.com/pnpm/pnpm/blob/main/packages/dependency-path","type":"git"},"_npmVersion":"10.8.2","description":"Utilities for working with symlinked node_modules","directories":{},"_nodeVersion":"20.19.5","dependencies":{"semver":"^7.7.1","@pnpm/types":"1000.9.0","@pnpm/crypto.hash":"1000.2.1"},"_hasShrinkwrap":false,"devDependencies":{"@types/semver":"7.5.3","@pnpm/dependency-path":"1001.1.3"},"_npmOperationalInternal":{"tmp":"tmp/dependency-path_1001.1.3_1761054880069_0.6142840380657082","host":"s3://npm-registry-packages-npm-production"},"readme":"# @pnpm/dependency-path\n\n> Utilities for working with symlinked node_modules\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/dependency-path.svg)](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\npnpm add @pnpm/dependency-path\n```\n\n## Usage\n\n<!--/* cspell:disable */-->\n<!--@example('./example.js')-->\n```js\nconst dependencyPath = require('@pnpm/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<!--/* cspell:enable */-->\n\n## License\n\nMIT\n","publish_time":1761054880266,"_cnpm_publish_time":1761054880266,"dist-tags":{"latest":"1001.1.10","latest-10":"1001.1.11"}}