{"_id":"@pnpm/deps.path@1101.0.2","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"ab136142f59d045b8c5c21e56404c4dfe8c480ef","tarball":"http://registry-npm.ywwl.com/@pnpm/deps.path/download/@pnpm/deps.path-1101.0.2.tgz","fileCount":6,"integrity":"sha512-GvCMGFw0V88CSQmV9SasgrzODYCeBXaJj2+kD6/1gfaW+irrVJMKHHUprdn+Ti4snB78pTAn1y2sFe+ablGHTg==","signatures":[{"sig":"MEYCIQCWbEmMz8m4HgCfuICzKxqMvgYuQmSSjHZcGxgTCkPESwIhALMWRGOTCIvRAa8eNkyhQYAvq5+/TH3IJYI5aUzXqzlb","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICkxezZ7rroNdk9TEu0EBkcX2fdwSR8rdagh0NdcJql7AiB7xJ/vPxSho3HOc7zc3Z4wU2opyVaadjHHNr45zuyGJw=="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fdeps.path@1101.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":32467,"size":9851,"noattachment":false,"key":"/@pnpm/deps.path/-/@pnpm/deps.path-1101.0.2.tgz"},"jest":{"preset":"@pnpm/jest-config"},"main":"lib/index.js","name":"@pnpm/deps.path","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","license":"MIT","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"},"version":"1101.0.2","_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/deps/path#readme","keywords":["pnpm","pnpm11","node_modules","path"],"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/deps/path","type":"git"},"description":"Utilities for working with symlinked node_modules","directories":{},"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"dependencies":{"semver":"^7.8.5","@pnpm/types":"1102.1.0","@pnpm/crypto.hash":"1100.0.4"},"_hasShrinkwrap":false,"devDependencies":{"@jest/globals":"30.4.1","@types/semver":"7.8.0","@pnpm/deps.path":"1101.0.2"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deps.path_1101.0.2_1789208298429_0.40318572185541357"},"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":1789208298503,"_cnpm_publish_time":1789208298503,"dist-tags":{"latest":"1101.0.8"}}