{"name":"@pnpm/dependency-path","version":"1001.1.10","description":"Utilities for working with symlinked node_modules","keywords":["pnpm","pnpm10","node_modules","path"],"license":"MIT","funding":"https://opencollective.com/pnpm","repository":{"type":"git","url":"git+https://github.com/pnpm/pnpm.git#main"},"homepage":"https://github.com/pnpm/pnpm/tree/main/packages/dependency-path#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"type":"commonjs","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":"./lib/index.js"},"dependencies":{"semver":"^7.7.1","@pnpm/types":"1001.3.0","@pnpm/crypto.hash":"1000.2.2"},"devDependencies":{"@types/semver":"7.5.3","@pnpm/dependency-path":"1001.1.10"},"engines":{"node":">=18.12"},"jest":{"preset":"@pnpm/jest-config"},"scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","_test":"jest","test":"pnpm run compile && pnpm run _test","compile":"tsc --build && pnpm run lint --fix"},"_id":"@pnpm/dependency-path@1001.1.10","_integrity":"sha512-PNImtV2SmNTDpLi4HdN86tJPmsOeIxm4VhmxgBVsMrJPEBfkNEWFcflR3wU6XVn/26g9qWdvlNHaawtCjeB93Q==","_resolved":"/private/var/folders/g7/5ygp0ncd6qx5g4fn5hpsqq5c0000gn/T/38e8df03538c92cc40a41a4cb653d798/pnpm-dependency-path-1001.1.10.tgz","_from":"file:pnpm-dependency-path-1001.1.10.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-PNImtV2SmNTDpLi4HdN86tJPmsOeIxm4VhmxgBVsMrJPEBfkNEWFcflR3wU6XVn/26g9qWdvlNHaawtCjeB93Q==","shasum":"5145596c68806be181975e46116ac2c52c628c51","tarball":"http://registry-npm.ywwl.com/@pnpm/dependency-path/download/@pnpm/dependency-path-1001.1.10.tgz","fileCount":6,"unpackedSize":19211,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCj4K7o4j5zlg3ftUQiz+vElnxD5UFRhna2drwcWxieSQIhAMbztY5NptaymaDzeX8QcCCH6CXyZ7hLf9GFa273JW9x"}],"size":5643,"noattachment":false,"key":"/@pnpm/dependency-path/-/@pnpm/dependency-path-1001.1.10.tgz"},"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/dependency-path_1001.1.10_1771343231770_0.8937856755191911"},"_hasShrinkwrap":false,"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":1771343231928,"_cnpm_publish_time":1771343231928,"dist-tags":{"latest":"1001.1.10","latest-10":"1001.1.11"}}