{"name":"dependency-path","version":"4.0.7-alpha.0","description":"Utilities for working with symlinked node_modules","main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"lint":"tslint -c ../../tslint.json src/**/*.ts test/**/*.ts","_test":"cd ../.. && c8 --reporter lcov --reports-dir packages/dependency-path/coverage ts-node packages/dependency-path/test --type-check","test":"pnpm run compile && pnpm run _test","prepublishOnly":"pnpm run compile","compile":"rimraf lib tsconfig.tsbuildinfo && tsc --build"},"repository":{"type":"git","url":"https://github.com/pnpm/pnpm/blob/master/packages/dependency-path"},"keywords":["node_modules","pnpm","path"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"engines":{"node":">=10.13"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"homepage":"https://github.com/pnpm/pnpm/blob/master/packages/dependency-path#readme","dependencies":{"@pnpm/types":"6.0.0-alpha.0","encode-registry":"2.0.2","semver":"^7.3.2"},"devDependencies":{"@types/semver":"^7.1.0","dependency-path":"link:"},"funding":"https://opencollective.com/pnpm","readme":"# 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\n<pnpm|npm|yarn> add dependency-path\n```\n\n## Usage\n\n<!--@example('./example.js')-->\n```js\nconst dependencyPath = require('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\n## License\n\nMIT © [Zoltan Kochan](https://www.kochan.io/)\n","readmeFilename":"README.md","_id":"dependency-path@4.0.7-alpha.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.5","dist":{"integrity":"sha512-4WOkuMKpnRsZopYtMBwUFsDr/APAK6LExYm8juhHO7IE81n+r8C5RHvc18ygqYoxbXQyA/3RHNOOHwSiY7myMg==","shasum":"b1e5314afb51faeed9aedd1124f7d1f0880ec278","tarball":"http://registry-npm.ywwl.com/dependency-path/download/dependency-path-4.0.7-alpha.0.tgz","fileCount":6,"unpackedSize":9375,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeuaatCRA9TVsSAnZWagAA+1cP/Rw6rGWc0B9g9jIpPbGL\nUVwxRer2zCL41kwU3Q1g5T/x+NfimQP+2wTgzvpkjz/KoTnPCtLOl8whMlRT\nJEdGU/QXT7AEwEH+nRZ3oUwEiKCBE1VDCZG2SVPZzetIzz9KBW1/7k1e4O0Z\nDsu5EAF9ZcmlZNX96JNb8onJnlbSH1bc+SqZCpX1C6b/YvEnIedU9NUE0reU\nMojr+dTgPSIYc/Uf9f+9DZUuubv8gBG9CKmdUjI3IVKUH94Ij2VQm88tTbYI\nyA+fh21bPYZRCGafBy4r3cENH0V8eO0wy4HlIpMwEpuQATk0rZZkv9jkrdGY\nTHm3ilVcasS3N+LIIEWptjFX9jK90x334ePZf/DYocOioO5WSY38NVlhpFyt\nEgOlAPTJFXNivqsWl/6zjAa4g2ZCUtrDnQ7OLkW4wrzZ89W6dhEoIG5GhEhU\nvCtSt/hTzseirGJAW96OHqJFJgGfLygLkpxQUJI+CSSo9UOe56bh0RxD4K6T\nlR1LUbIj9dhYGusKOCEGAnS3ohl6ZdgDVV33kBzVIML7pIaZaEVEwPbJm7B7\nlpcntGsOAUnUMIvhRceRXVY5dsZv5mw11etxTRiP1OUdS14q6uGyHS4nEBGf\nUV01HDZnCglERG717HAKwmzMr3PsNqs0lbZjg5uAPpc/qlyAVlPVnNGLi74H\nu1Gv\r\n=YtH5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDZgZG8Cei70LAz9+gZBIQn4jT5pdnYzLGg54Wl950YGAiEArRp1uD8Vj3DconsTZi3OlMHAoIxCeg3H0XTQG2KAUpo="}],"size":3352,"noattachment":false,"key":"/dependency-path/-/dependency-path-4.0.7-alpha.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_npmUser":{"name":"zkochan","email":"z@kochan.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dependency-path_4.0.7-alpha.0_1589225132816_0.16716810095718748"},"_hasShrinkwrap":false,"publish_time":1589225132956,"_cnpm_publish_time":1589225132956,"dist-tags":{"latest":"9.2.8","latest-6":"8.0.13","next":"4.0.6","pnpm-temp":"5.0.3"}}