{"mos":{"plugins":["readme"],"installation":{"useShortAlias":true}},"bugs":{"url":"https://github.com/pnpm/dependencies-hierarchy/issues"},"dist":{"shasum":"4922d254e8b65678cd0ae7fdb4ea557f540478a0","tarball":"https://registry.npmjs.org/dependencies-hierarchy/-/dependencies-hierarchy-3.0.0.tgz","fileCount":6,"integrity":"sha512-JV9xKW/C2okJcxQbtWh797nzNmDQW31zleL0dNWSt4/wXuz15g5MYjgHxMRc0UJtnqNk7W7kEsz4T1W/FQ18DQ==","signatures":[{"sig":"MEUCIQDbRFx3XaBJ9Up55DLU9tV+DApIAl0JMpph15g/aWeHugIgZyArpVmoO+VHG5aP1RaVtSMHA1n+AF+NbCj5EwOTWPM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbS11WCRA9TVsSAnZWagAAtV0P/04m3MEyJiT7vPp5W/p0\nJQtjCZzJBYKHzX4aIBpu5hoaORMRgWvWi5mizgvB1yeFjhc2TvjblcIUXTq8\nIryJ5WJR7evopNbdTT+Fyy2tc0yk3lD3UFdbyUFnaRDn2TjQAlXIx4lwICLL\n5BP8ZHun2qzmDXzacDbhWLP4xgE3IYMLEYQEoo3C9eHJaTkzwkaxd07zsRlM\nSqCDolpelxpX/EArqdDRVDN8lg+G0csm/IvMGF6bM8eAMv9q5FgfApPEHZ2I\niuSOVDFjVD0JiQ+TfHnKZH7B8+5emKpI8qNMNs88kyuoUAgSy1e7Bk8vpi9E\nS/KTjPazQbTLa70rC+iNNxEdw43ksqPZPtD5N/URcFBsBR68838ZUFF/0AuO\nluEiD5RVrr+qxCQrW9W0324zELeEHdOm+0YNIdBnvj/Lkblu0DSxiFK9EVFM\nKswzQT0/stdVOsCOIC5DMa+8kz/AHfx46Oi8yBRCiTlxnJ9DUu4ZeJimeqou\nr7+52E8nf4Mm2OecAOrwWvL9iEDQh+HA+6g5Mm4cqEnYXvTximTm1XnjxfSH\n4A4I6NJNzkgWYLUKmDcNIzfZKEX6jWPAVeifgNGOmM7R4rpbgR4TR4zNPMD/\nO5obxlP6kc5kHnxTKooDnD7sxaxcEYByddbSNp0S/PmSoxFcfKNjh7b+T5xJ\ngd8b\r\n=HYH/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","name":"dependencies-hierarchy","files":["lib"],"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', 'travis')-->\n[![npm version](https://img.shields.io/npm/v/dependencies-hierarchy.svg)](https://www.npmjs.com/package/dependencies-hierarchy) [![Build Status](https://img.shields.io/travis/pnpm/dependencies-hierarchy/master.svg)](https://travis-ci.org/pnpm/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<!--@example('./example/index.js')-->\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\": \"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\": \"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\": \"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\": \"registry.npmjs.org/write-pkg/3.1.0\",\n    //        \"version\": \"3.1.0\"\n    //      }\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":">=6"},"gitHead":"f74e5c671aadb67aeffe2bc3eaf29371f3b05b68","license":"MIT","scripts":{"md":"preview && tsc && mos","fix":"tslint -c tslint.json --project . --fix","tsc":"tsc","lint":"tslint -c tslint.json --project .","test":"npm run lint && preview && ts-node test --type-check && mos t","prepublishOnly":"tsc"},"typings":"lib/index.d.ts","_npmUser":{"name":"zkochan","email":"z@kochan.io"},"homepage":"https://github.com/pnpm/dependencies-hierarchy#readme","keywords":["hierarchy","pnpm","dependencies","node_modules"],"repository":{"url":"git+https://github.com/pnpm/dependencies-hierarchy.git","type":"git"},"_npmVersion":"6.2.0","description":"Creates a dependencies hierarchy for a symlinked `node_modules`","directories":{},"maintainers":[{"name":"zkochan","email":"zoltan.kochan@gmail.com"}],"_nodeVersion":"9.10.1","dependencies":{"semver":"^5.3.0","@types/node":"^9.3.0 || 10","@types/semver":"^5.3.32","dependency-path":"^1.0.0","pnpm-shrinkwrap":"^7.0.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"mos":"^2.0.0-alpha.3","tape":"^4.7.0","tslint":"^5.8.0","ts-node":"^7.0.0","typescript":"^2.4.1","@types/tape":"^4.2.30","@pnpm/logger":"^1.0.0","package-preview":"^1.0.0","mos-plugin-readme":"^1.0.4"},"_npmOperationalInternal":{"tmp":"tmp/dependencies-hierarchy_3.0.0_1531665750577_0.9849438449039989","host":"s3://npm-registry-packages"},"_id":"dependencies-hierarchy@3.0.0","version":"3.0.0"}