{"name":"@pnpm/deps.path","version":"1100.0.2","keywords":["pnpm","pnpm11","node_modules","path"],"license":"MIT","_id":"@pnpm/deps.path@1100.0.2","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":"087e64d9d8fbb737293a2e9cfa530e14482fe255","tarball":"http://registry-npm.ywwl.com/@pnpm/deps.path/download/@pnpm/deps.path-1100.0.2.tgz","fileCount":5,"integrity":"sha512-M67rY88yZ4YW02Ks+Th2NosViRJXWW5RC3eQb1YcZFUzbTxfHuUl+hUH+ztaF6Wbo52GaHjkrRa0Vf6OvYS/UQ==","signatures":[{"sig":"MEUCICRe6oOYm3qwmsAyNZHutDC9XcheQ447FMW1JmIE6Uw+AiEAtE2yB+JU7GR4OOH4yYu9yZ0uHNRjbFoxi3RyKv0CC5I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2fdeps.path@1100.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12025,"size":3970,"noattachment":false,"key":"/@pnpm/deps.path/-/@pnpm/deps.path-1100.0.2.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":"https://github.com/pnpm/pnpm/tree/main/deps/path","description":"Utilities for working with symlinked node_modules","directories":{},"_nodeVersion":"25.9.0","dependencies":{"semver":"^7.7.2","@pnpm/types":"1101.0.0","@pnpm/crypto.hash":"1100.0.1"},"_hasShrinkwrap":false,"devDependencies":{"@jest/globals":"30.3.0","@types/semver":"7.7.1","@pnpm/deps.path":"1100.0.2"},"_npmOperationalInternal":{"tmp":"tmp/deps.path_1100.0.2_1777583549647_0.316742777489166","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":1777583549798,"_cnpm_publish_time":1777583549798,"dist-tags":{"latest":"1101.0.8"}}