{"_id":"@pnpm/deps.path@1101.0.6","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"029229b0c58239e7dd63c896e03d7cf81c8ed478","tarball":"http://registry-npm.ywwl.com/@pnpm/deps.path/download/@pnpm/deps.path-1101.0.6.tgz","fileCount":8,"integrity":"sha512-sU8MOW1R/SnNyms/VP4ALFKavknXdhT35uvwOwFjcJc1Vw6g86ethbc3ZYEqEQniGU6idBfLWEL7KLdp009O4A==","signatures":[{"sig":"MEUCIQCs4FTiYDka/XCfVAZ/yRYHPtnvD9GHXTWC+TjLV7fE+AIgJ+X4rk08jWl/xB/CMJBMpvjwBRSRCzXPh+RF+4hzOeM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAykGB98LQubNP5BafRYxmuOyp/JUDSXZ/G3fjKB7tQYAiEAh+v4SEfMqMXxEv0TFOT+HN1o1FzW2O8CD9DLAnDYrWI="}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fdeps.path@1101.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":40813,"size":12602,"noattachment":false,"key":"/@pnpm/deps.path/-/@pnpm/deps.path-1101.0.6.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.6","_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.1","@pnpm/crypto.hash":"1100.0.8"},"_hasShrinkwrap":false,"devDependencies":{"@jest/globals":"30.4.1","@types/semver":"7.8.0","@pnpm/deps.path":"1101.0.6"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/deps.path_1101.0.6_1791246026806_0.9622520921694802"},"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":1791246026890,"_cnpm_publish_time":1791246026890,"dist-tags":{"latest":"1101.0.8"}}