{"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"1acc3db4d6aa028b661debe37f782083b4a15383","tarball":"https://registry.npmjs.org/dependencies-hierarchy/-/dependencies-hierarchy-5.0.0-3.tgz","fileCount":6,"integrity":"sha512-RPAZKSW7+0Zf8i+/iyLuYnpytS7jyKvH0LQ4X4sr2xZzlApjdCnPOMz5YkkpPOzHzXrFTz2GyZsUaoNi1TR38Q==","signatures":[{"sig":"MEQCIHp/v6zJt81kxTHtkiDtRFVTupAL1fhaDo4ADtOwjpGAAiAEfR36uKhkHWKqCBQK2elN+pYQFK6X3wCJUQWTrHSPEw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21737,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcfPh+CRA9TVsSAnZWagAAs6QP/jeq3kL1ed48Cr2wT+kg\n6pEMI4eje3x5DKLF31o7EAYZw2unbTv4afwnsZa5st9wTO6wS8NtczLUkhNN\n30jlHZidsFLwD3baSRQLlkNj0gPEvBWCGGNSPKUuni6iBXHsaZPZwGEnUWTo\neKmRq7lczG4S2RDyfFMdSi8PsnP6l/JgllgKinoY/zPc53X7KzmtvtYSErMq\nGOpTeA7qVfh3Pf36MKz9z66QxeuOYdezxFfpz6tUWlOInZvTBth4JTtc/iXx\n+8PE2ZlnEVSkkBXqposGs14xR4z0JgeVo9979hP1KtBhCXV7RRSYJU0AJdi7\nyn/sK/bCX0492dhGWmY4yvoOhVNEilwmXPcBU6qvdHHDw67A07BZe6SAvf5s\nX9Li69vf+zHQk+vqu1iTFaVGPWz1G2X89rbPIxlG02f3SWL4LF+JmZz+CNP1\nC0rDWzXHyxrIuCyyOdTTaxq2MAvbLjIJdC6Mt285wSRaCYco/5kr7PT35Mr5\n80cnLic3RRKzvXw8RaSMuXr/xx+bPh48+xURlstQ9MvxXQkLHx99M+aIwgJC\nC9L0pO2yN5rwyS3NFODj506jEJIB8OJMYeoMvBwE6/fKfVMzqprATTMh8sAq\nRE4hv8DoSJJmOHYAZGEc1ZfQ0EW+vmpbi+rk8OVzcuRGj7JMQgdZMf9s3vxk\n6wM1\r\n=W367\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"dependencies-hierarchy","author":{"url":"https://www.kochan.io/","name":"Zoltan Kochan","email":"z@kochan.io"},"readme":"# dependencies-hierarchy\n\n> Creates a dependencies hierarchy for a symlinked \\`node_modules\\`\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/dependencies-hierarchy.svg)](https://www.npmjs.com/package/dependencies-hierarchy)\n<!--/@-->\n\nA symlinked `node_modules` is created when installing using [pnpm](https://github.com/pnpm/pnpm).\n\n## Install\n\nInstall it via npm.\n\n    npm install dependencies-hierarchy\n\n## Usage\n\n```js\n'use strict'\nconst hierarchyForPackages = require('dependencies-hierarchy').forPackages\n\nhierarchyForPackages(['graceful-fs', {name: 'pify', range: '2'}], __dirname, {depth: 2})\n  .then(tree => {\n    console.log(JSON.stringify(tree, null, 2))\n    //> [\n    //    {\n    //      \"dependencies\": [\n    //        {\n    //          \"dependencies\": [\n    //            {\n    //              \"pkg\": {\n    //                \"name\": \"graceful-fs\",\n    //                \"path\": \"/home/zoltan/src/pnpm/pnpm/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/graceful-fs/4.1.11\",\n    //                \"version\": \"4.1.11\"\n    //              },\n    //              \"searched\": true\n    //            },\n    //            {\n    //              \"pkg\": {\n    //                \"name\": \"pify\",\n    //                \"path\": \"/home/zoltan/src/pnpm/pnpm/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/pify/2.3.0\",\n    //                \"version\": \"2.3.0\"\n    //              },\n    //              \"searched\": true\n    //            }\n    //          ],\n    //          \"pkg\": {\n    //            \"name\": \"write-json-file\",\n    //            \"path\": \"/home/zoltan/src/pnpm/pnpm/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-json-file/2.2.0\",\n    //            \"version\": \"2.2.0\"\n    //          }\n    //        }\n    //      ],\n    //      \"pkg\": {\n    //        \"name\": \"write-pkg\",\n    //        \"path\": \"/home/zoltan/src/pnpm/pnpm/packages/dependencies-hierarchy/example/node_modules/.registry.npmjs.org/write-pkg/3.1.0\",\n    //        \"version\": \"3.1.0\"\n    //      }\n    //    }\n    //  ]\n  })\n```\n\n## API\n\n### default: `dependenciesHierarchy(projectPath, [opts]): Promise<Hierarchy>`\n\nCreates a dependency tree for a project's `node_modules`.\n\n#### Arguments:\n\n- `projectPath` - _String_ - The path to the project.\n- `[opts.depth]` - _Number_ - 0 by default. How deep should the `node_modules` be analyzed.\n- `[opts.only]` - _'dev' | 'prod'_ - Optional. If set to `dev`, then only packages from `devDependencies` are analyzed.\n  If set to `prod`, then only packages from `dependencies` are analyzed.\n\n### `forPackages(packageSelectors, projectPath, [opts]): Promise<Hierarchy>`\n\nCreates a dependency tree for a project's `node_modules`. Limits the results to only the paths to the packages named.\n\n#### Arguments:\n\n- `packageSelectors` - _(string | {name: string, version: string})\\[]_ - An array that consist of package names or package names and version ranges.\n  E.g. `['foo', {name: 'bar', version: '^2.0.0'}]`.\n- `projectPath` - _String_ - The path to the project\n- `[opts.depth]` - _Number_ - 0 by default. How deep should the `node_modules` be analyzed.\n- `[opts.only]` - _'dev' | 'prod'_ - Optional. If set to `dev`, then only packages from `devDependencies` are analyzed.\n  If set to `prod`, then only packages from `dependencies` are analyzed.\n\n## License\n\n[MIT](./LICENSE) © [Zoltan Kochan](https://www.kochan.io/)\n","engines":{"node":">=8"},"license":"MIT","scripts":{"md":"tsc && mos","fix":"tslint -c tslint.json src/**/*.ts test/**/*.ts --fix","tsc":"tsc","lint":"tslint -c tslint.json src/**/*.ts test/**/*.ts","test":"npm run tsc && npm run lint && ts-node test --type-check && mos t","pretest":"cd fixtures && node ../../pnpm/bin/pnpm recursive install --frozen-shrinkwrap --no-shared-workspace-shrinkwrap --no-link-workspace-packages && cd ../fixtureWithLinks && node ../../pnpm/bin/pnpm recursive install --frozen-shrinkwrap --link-workspace-packages --no-shared-workspace-shrinkwrap && cd ..","prepublishOnly":"tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"homepage":"https://github.com/pnpm/pnpm/blob/master/packages/dependencies-hierarchy#readme","keywords":["hierarchy","pnpm","dependencies","node_modules"],"repository":{"url":"https://github.com/pnpm/pnpm/blob/master/packages/dependencies-hierarchy","type":"git"},"_npmVersion":"6.7.0","description":"Creates a dependencies hierarchy for a symlinked `node_modules`","directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_nodeVersion":"10.12.0","dependencies":{"semver":"5.6.0","@pnpm/types":"2.0.0","@pnpm/utils":"0.9.1","@types/node":"11.9.5","@types/semver":"5.5.0","normalize-path":"3.0.0","dependency-path":"3.0.0-0","@pnpm/modules-yaml":"2.0.1","resolve-link-target":"1.0.1","@pnpm/shrinkwrap-file":"2.0.0-2","@pnpm/read-modules-dir":"1.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mos":"2.0.0-alpha.3","tape":"4.10.1","tslint":"5.13.1","ts-node":"7.0.1","typescript":"3.3.3333","@types/tape":"4.2.33","@pnpm/logger":"2.1.0","mos-tap-diff":"1.0.0","@pnpm/constants":"1.0.0-0","mos-plugin-readme":"1.0.4","@pnpm/tslint-config":"0.0.0","dependencies-hierarchy":"link:"},"_npmOperationalInternal":{"tmp":"tmp/dependencies-hierarchy_5.0.0-3_1551693949534_0.3255372467441362","host":"s3://npm-registry-packages"},"_id":"dependencies-hierarchy@5.0.0-3","version":"5.0.0-3"}