{"name":"@pnpm/deps.path","version":"1100.0.8","keywords":["pnpm","pnpm11","node_modules","path"],"license":"MIT","_id":"@pnpm/deps.path@1100.0.8","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/deps/path#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"13dfa559df8bfbbdc82fb75f5f938513b2516494","tarball":"http://registry-npm.ywwl.com/@pnpm/deps.path/download/@pnpm/deps.path-1100.0.8.tgz","fileCount":5,"integrity":"sha512-rW5a0TPcITHS+DF/SsGmFGKnUvmuSimTjeUGVXWZb2zbJ1kllSa67HSarM+Kg9UHD08rGYLt2EShoiOPl3lfig==","signatures":[{"sig":"MEUCIHwskMXwEB6QOkHhCj4C0SL2sEeooM6pMSbU3zquwRxTAiEAwK4QfxQdLCgBUTogOjKnLqLTAT3syPQIbs+aNowSucs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fdeps.path@1100.0.8","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12204,"size":3985,"noattachment":false,"key":"/@pnpm/deps.path/-/@pnpm/deps.path-1100.0.8.tgz"},"jest":{"preset":"@pnpm/jest-config"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pn compile && pn .test",".test":"cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/deps/path","type":"git"},"description":"Utilities for working with symlinked node_modules","directories":{},"_nodeVersion":"26.0.0","dependencies":{"semver":"^7.8.4","@pnpm/types":"1101.3.2","@pnpm/crypto.hash":"1100.0.1"},"_hasShrinkwrap":false,"devDependencies":{"@jest/globals":"30.4.1","@types/semver":"7.7.1","@pnpm/deps.path":"1100.0.8"},"_npmOperationalInternal":{"tmp":"tmp/deps.path_1100.0.8_1781506162347_0.82139304151739","host":"s3://npm-registry-packages-npm-production"},"readme":"# @pnpm/deps.path\n\n> Utilities for working with symlinked node_modules\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/deps.path.svg)](https://npmx.dev/package/deps.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/deps.path\n```\n\n## Usage\n\n<!--/* cspell:disable */-->\n<!--@example('./example.js')-->\n```js\nconst dependencyPath = require('@pnpm/deps.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":1781506162471,"_cnpm_publish_time":1781506162471,"dist-tags":{"latest":"1101.0.8"}}