{
  "_args": [
    [
      {
        "raw": "dependencies-hierarchy@^3.0.0",
        "scope": null,
        "escapedName": "dependencies-hierarchy",
        "name": "dependencies-hierarchy",
        "rawSpec": "^3.0.0",
        "spec": ">=3.0.0 <4.0.0",
        "type": "range"
      },
      "/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-list"
    ]
  ],
  "_from": "dependencies-hierarchy@>=3.0.0 <4.0.0",
  "_id": "dependencies-hierarchy@3.0.1",
  "_inCache": true,
  "_location": "/dependencies-hierarchy",
  "_nodeVersion": "9.10.1",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/dependencies-hierarchy_3.0.1_1534941161143_0.311077618528109"
  },
  "_npmUser": {
    "name": "zkochan",
    "email": "z@kochan.io"
  },
  "_npmVersion": "6.4.0",
  "_phantomChildren": {},
  "_requested": {
    "raw": "dependencies-hierarchy@^3.0.0",
    "scope": null,
    "escapedName": "dependencies-hierarchy",
    "name": "dependencies-hierarchy",
    "rawSpec": "^3.0.0",
    "spec": ">=3.0.0 <4.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/pnpm-list"
  ],
  "_resolved": "https://registry.npmjs.org/dependencies-hierarchy/-/dependencies-hierarchy-3.0.1.tgz",
  "_shasum": "934ef614f043ff40104ce0619207b828d0f430f9",
  "_shrinkwrap": null,
  "_spec": "dependencies-hierarchy@^3.0.0",
  "_where": "/home/zkochan/src/pnpm/packages/pnpm/node_modules/pnpm-list",
  "author": {
    "name": "Zoltan Kochan",
    "email": "z@kochan.io",
    "url": "https://www.kochan.io/"
  },
  "bugs": {
    "url": "https://github.com/pnpm/dependencies-hierarchy/issues"
  },
  "dependencies": {
    "@types/node": "^9.3.0 || 10",
    "@types/semver": "^5.3.32",
    "dependency-path": "^2.0.0",
    "pnpm-shrinkwrap": "^7.0.0",
    "semver": "^5.3.0"
  },
  "description": "Creates a dependencies hierarchy for a symlinked `node_modules`",
  "devDependencies": {
    "@pnpm/logger": "^2.1.0",
    "@types/tape": "^4.2.30",
    "mos": "^2.0.0-alpha.3",
    "mos-plugin-readme": "^1.0.4",
    "package-preview": "^1.0.0",
    "tape": "^4.7.0",
    "ts-node": "^7.0.0",
    "tslint": "^5.8.0",
    "typescript": "^3.0.0"
  },
  "directories": {},
  "dist": {
    "integrity": "sha512-Mb6PKsJFlWVDW6OxhFwasjHQ1eqz4YG+bnWQa45LticBBGUvU72F9ssMry6ip76OT4OUqiyeNU8J8XXpBTBPsg==",
    "shasum": "934ef614f043ff40104ce0619207b828d0f430f9",
    "tarball": "https://registry.npmjs.org/dependencies-hierarchy/-/dependencies-hierarchy-3.0.1.tgz",
    "fileCount": 6,
    "unpackedSize": 17166,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbfVfpCRA9TVsSAnZWagAA9ckP/0KpNAb58x4RV8V4UffN\nHv3VvBj8eEnRsK43M1Blq5gV1Ljl6WqGpSQH5/MxLpvR/TqNpTQCZeyvBTlT\nvvY1//cvqjyuCgCv7Rqpsff71rrSYM+Viqj/5Q1LOsqrjbZtG2XNP2UbQv8h\n3S2d3Lz8fkapr+CUkBZwxnBlVQPBI4ijNj3g6ZKr0M/QZ8t9Jq3yhqmsY2qq\nJ8t4tThPLj4gJwznFL8BJ+wGRoxXc3lIsCgfxPoi/WiFOMvyC4H1g+OiQd8i\npO68lwGE6F0l3WXY5Z5pWzF65ckJ54ZanGjEkHXSXVV68H3nZ7nw+dii/m/z\nMlXqlVhKJbOTde1uSP+7m8SkXgEWu2WBmKhF7p0hn51GzV7wT5hdRg+KYZfU\n9XElNOwZyWzLc8wBjq7WQCiulcMSOfBuYoW6K8i3fyRizXco0jtecSSAVNyv\nL1W3N8Zg1oNgwhxQeVQJnspuaKXpIGLR4u8K+eDxtWuTzwaDjI9kVjoGE1LP\n+AJVpNMQ7RkbzgzcdbIV2A8NYETqnOuuZyTHcokkGTqWVu4tAgQaZ2rPYFtf\nejTrr355qcb7DH1iO/0UeevLp+OvYpo36YwB6zk/+e5sCwTPf0fn1a5GRltJ\nQXBeN/F5FbyWLZdjgCu4TE/i+ffFI/elpoZpR50dqBEdRR1m9mq2fpb+5/Nf\nLDwv\r\n=CxhR\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "engines": {
    "node": ">=6"
  },
  "files": [
    "lib"
  ],
  "gitHead": "21df92900bd3e26fe7fbbdd9d5aff2fb695ab8d0",
  "homepage": "https://github.com/pnpm/dependencies-hierarchy#readme",
  "keywords": [
    "hierarchy",
    "pnpm",
    "dependencies",
    "node_modules"
  ],
  "license": "MIT",
  "main": "lib/index.js",
  "maintainers": [
    {
      "name": "zkochan",
      "email": "zoltan.kochan@gmail.com"
    }
  ],
  "mos": {
    "plugins": [
      "readme"
    ],
    "installation": {
      "useShortAlias": true
    }
  },
  "name": "dependencies-hierarchy",
  "optionalDependencies": {},
  "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",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/pnpm/dependencies-hierarchy.git"
  },
  "scripts": {
    "fix": "tslint -c tslint.json --project . --fix",
    "lint": "tslint -c tslint.json --project .",
    "md": "preview && tsc && mos",
    "prepublishOnly": "tsc",
    "test": "npm run lint && preview && ts-node test --type-check && mos t",
    "tsc": "tsc"
  },
  "typings": "lib/index.d.ts",
  "version": "3.0.1"
}
