{"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"bugs":{"url":"https://github.com/pnpm/dependency-path/issues"},"dist":{"shasum":"173c1e7fe2584c3a33d49d8f3cdc7c21f490421a","tarball":"https://registry.npmjs.org/dependency-path/-/dependency-path-2.0.0.tgz","fileCount":6,"integrity":"sha512-Al6qJe6ip6vgm+BfCEZlN1prHDtE4SvyfEYKm+1JcWThc2W2STQP0KCa8VOf50Wo+L6oe5Yu3hRjSN+MEYlIxA==","signatures":[{"sig":"MEUCIGarnRZVGshfRgkh8LTWIHLOIRdBS46cEh1ZLaBd7MraAiEA0Y+09lObcjZ31TfVJ8L4FUG34dLfgq+6CpV4sHyHkz0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"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"},"main":"lib/index.js","name":"dependency-path","files":["lib"],"author":{"url":"https://www.kochan.io/","name":"Zoltan Kochan","email":"z@kochan.io"},"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","engines":{"node":">=6"},"gitHead":"adc724f24f0f34adccd4f9d09b381e75d42aeb91","license":"MIT","scripts":{"md":"mos","tsc":"tsc","test":"preview && ts-node test.ts && mos t","prepublishOnly":"tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"homepage":"https://github.com/pnpm/dependency-path#readme","keywords":["node_modules","pnpm","path"],"repository":{"url":"git+https://github.com/pnpm/dependency-path.git","type":"git"},"_npmVersion":"6.4.0","description":"Utilities for working with symlinked node_modules","directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_nodeVersion":"9.10.1","dependencies":{"semver":"^5.4.1","@types/semver":"^5.4.0","encode-registry":"^1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mos":"^2.0.0-alpha.3","tape":"^4.8.0","ts-node":"^7.0.0","typescript":"^3.0.0","@types/tape":"^4.2.30","package-preview":"^1.0.0","mos-plugin-readme":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/dependency-path_2.0.0_1534939551832_0.9648189066804755","host":"s3://npm-registry-packages"},"_id":"dependency-path@2.0.0","version":"2.0.0"}