{"name":"dependency-path","version":"2.0.0","description":"Utilities for working with symlinked node_modules","main":"lib/index.js","typings":"lib/index.d.ts","files":["lib"],"scripts":{"test":"preview && ts-node test.ts && mos t","prepublishOnly":"tsc","md":"mos","tsc":"tsc"},"repository":{"type":"git","url":"git+https://github.com/pnpm/dependency-path.git"},"keywords":["node_modules","pnpm","path"],"author":{"name":"Zoltan Kochan","email":"z@kochan.io","url":"https://www.kochan.io/"},"engines":{"node":">=6"},"license":"MIT","bugs":{"url":"https://github.com/pnpm/dependency-path/issues"},"homepage":"https://github.com/pnpm/dependency-path#readme","dependencies":{"@types/semver":"^5.4.0","encode-registry":"^1.0.0","semver":"^5.4.1"},"devDependencies":{"@types/tape":"^4.2.30","mos":"^2.0.0-alpha.3","mos-plugin-readme":"^1.0.4","package-preview":"^1.0.0","tape":"^4.8.0","ts-node":"^7.0.0","typescript":"^3.0.0"},"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"readme":"# dependency-path\n\n> Utilities for working with symlinked node_modules\n\n<!--@shields('npm', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/dependency-path.svg)](https://www.npmjs.com/package/dependency-path) [![Build Status](https://img.shields.io/travis/pnpm/dependency-path/master.svg)](https://travis-ci.org/pnpm/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\nnpm i -S 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\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","readmeFilename":"README.md","gitHead":"adc724f24f0f34adccd4f9d09b381e75d42aeb91","_id":"dependency-path@2.0.0","_npmVersion":"6.4.0","_nodeVersion":"9.10.1","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"dist":{"integrity":"sha512-Al6qJe6ip6vgm+BfCEZlN1prHDtE4SvyfEYKm+1JcWThc2W2STQP0KCa8VOf50Wo+L6oe5Yu3hRjSN+MEYlIxA==","shasum":"173c1e7fe2584c3a33d49d8f3cdc7c21f490421a","tarball":"http://registry-npm.ywwl.com/dependency-path/download/dependency-path-2.0.0.tgz","fileCount":6,"unpackedSize":9698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfVGgCRA9TVsSAnZWagAAM1MP/3zWbTrK/Vx+7xFt0TkH\n6W8Redre+VandXaRDW5K35WtM2gW+l0IAWjpW6sG2+JSN7Lgj3wA6NWsi4k+\nO9QiXe7wduhRPgxc4NPrWKsfPqpgF+ZiC69ygYUZI2ZCXBQHq2NpV69Fd+Gn\nTDD56ZdW602T/8YY5IG37dJtQbShhYImqm15f2yUEObyPl0bL+CoFbDahlkm\nu2xUphjFK+csToSAHs/7zOPHDa2d5CupaXhTZvf8TkbYf2wKbGxBg0atK0rL\nBl0m0GLKgJxTSf+f99AlIoCpsqGJtFeAKfKi8Spe3OHSGVAnJ8Znr5uJOSDA\nd6lCfT+EQrdLRlsR7Q2if4ZpkNhwsStMANEjP9SLfOPLJiN0xmmCFH0ogPpu\niL2NjpuMkvmXVc+E+C58ljgf3NvHXH5bQBV60av3pHTVpdug9HUJU4JcZNeK\nD7wkvk62fk2jMTdYnaMeUuPdv60fdiP1Agdd1V2Eug9wVMCdfpCIfOujdmj+\nyHx79JWyM9x18UgJcO8hHuJ+w42g4FkPvzKnreZ0K2JDsPlsUagBe0sO1VG4\nyjHOfEJN9zOLUOrpDfdOrT10PugrW2Fy6S5aKpwukvUg4CfAHTC1FwgpljAj\n/D5sNu/eSFqJE7BSh3LD/wdQUHYVTYupr6Xp3xCdXujmlJ1Kaly2pfBHTAqe\noKg3\r\n=6vNe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGarnRZVGshfRgkh8LTWIHLOIRdBS46cEh1ZLaBd7MraAiEA0Y+09lObcjZ31TfVJ8L4FUG34dLfgq+6CpV4sHyHkz0="}],"size":3531,"noattachment":false,"key":"/dependency-path/-/dependency-path-2.0.0.tgz"},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dependency-path_2.0.0_1534939551832_0.9648189066804755"},"_hasShrinkwrap":false,"publish_time":1534939551940,"_cnpm_publish_time":1534939551940,"dist-tags":{"latest":"9.2.8","latest-6":"8.0.13","next":"4.0.6","pnpm-temp":"5.0.3"}}