@zkochan/pnpm
Version:
Fast, disk space efficient package manager
150 lines (149 loc) • 7.44 kB
JSON
{
"_args": [
[
{
"raw": "pnpm-list@4.0.1",
"scope": null,
"escapedName": "pnpm-list",
"name": "pnpm-list",
"rawSpec": "4.0.1",
"spec": "4.0.1",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm"
]
],
"_from": "pnpm-list@4.0.1",
"_id": "pnpm-list@4.0.1",
"_inCache": true,
"_location": "/pnpm-list",
"_nodeVersion": "9.10.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/pnpm-list_4.0.1_1534104206703_0.3787125016370769"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "6.3.0",
"_phantomChildren": {
"hosted-git-info": "2.7.1",
"osenv": "0.1.5",
"semver": "5.5.1",
"validate-npm-package-name": "3.0.0"
},
"_requested": {
"raw": "pnpm-list@4.0.1",
"scope": null,
"escapedName": "pnpm-list",
"name": "pnpm-list",
"rawSpec": "4.0.1",
"spec": "4.0.1",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/pnpm-list/-/pnpm-list-4.0.1.tgz",
"_shasum": "c735292c8d654ed863a01549ccb0881d98ce2477",
"_shrinkwrap": null,
"_spec": "pnpm-list@4.0.1",
"_where": "/home/zkochan/src/pnpm/packages/pnpm",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/pnpm-list/issues"
},
"dependencies": {
"@types/archy": "^0.0.31",
"@types/node": "^9.3.0 || 10",
"@types/ramda": "^0.25.0",
"archy": "^1.0.0",
"chalk": "^2.3.0",
"dependencies-hierarchy": "^3.0.0",
"npm-package-arg": "^6.0.0",
"p-limit": "^2.0.0",
"ramda": "^0.25.0",
"read-package-json": "^2.0.12",
"thenify": "^3.3.0"
},
"description": "List installed packages in a symlinked `node_modules`",
"devDependencies": {
"@pnpm/logger": "^2.1.0",
"@types/common-tags": "^1.2.5",
"@types/tape": "^4.2.30",
"common-tags": "^1.4.0",
"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-ZMDp2CBQpKed7JCeZpCp/V3XcMPML1jNlvguN/c/6MFY5fZGO3W7HCis1f7021NqWWY5NuXJZF3fsYXAsfEJoQ==",
"shasum": "c735292c8d654ed863a01549ccb0881d98ce2477",
"tarball": "https://registry.npmjs.org/pnpm-list/-/pnpm-list-4.0.1.tgz",
"fileCount": 15,
"unpackedSize": 20602,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcJKPCRA9TVsSAnZWagAACRMP/32b2HdB6rVt9XZvF6Og\nMayU++UD+lXTqfH4Q0FeQmypmiBd9Q72S1YwmztN3TaiDIyK+ghYlm1lc3Wl\nL3QAeiIx9zL7b1aFOwVP+7ILHwjuK/AZUAU6kmRp4x5lTnkFz4RcPYkyQfdP\n+okONNjLhxLCCR6rLP+5Mcl72pPtbmwGwiIsfehuYPwyV8VNovQ49k1//B/f\nYnwTsiWXvXdy1OhlWKkLkKeKi5Ue26ZM4hYxoDy3kwxpjMgcmaHVyN1r99wZ\nxROD4gZ6EQhzY23ZNLvDX+VrfwgAfHAtMOpA8WVKYWHltVsu2Vfm1jEPEgIC\nk9z3E3kbY3AP3ZNHwIqweZuSGB8wB7Ttyz4w1dt2N6LpRF79vloZ+f5v9zIY\n5x8kRxYBB0SO0IrrOukWjfGLh8FsJEgr0KovCIjgP9H4ScP2VzdV2qrVSdOP\nraCiS1WdfHyIaT17TWPi2LxRmcHyP4MgydXxjlRPhsScOLlLHBdfS8ptG86I\nsK/f3ykKNe+6QZkL74AFXC/83pFsbkbeJ6ejslbuJJNpDCAisovTuJRHtBWx\n2E8aQs8oLq9KXlFJ3xcVzS93J5bHv7TmRKiRM2PUjAwEYNOKOo4Lcrsoohav\nZCIjcza0/FFpG8QamtOAZ/Wug0A1EmNhzwoyGhywKdzG3l8w5/4oGfLALRS9\n1z24\r\n=bewb\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=6"
},
"files": [
"lib"
],
"gitHead": "eb4ab8e463daa804bc509becd4e6781f332999e8",
"greenkeeper": {
"ignore": [
"dependencies-hierarchy"
]
},
"homepage": "https://github.com/pnpm/pnpm-list#readme",
"keywords": [
"pnpm",
"list",
"ls"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "zkochan",
"email": "zoltan.kochan@gmail.com"
}
],
"mos": {
"plugins": [
"readme"
],
"installation": {
"useShortAlias": true
}
},
"name": "pnpm-list",
"optionalDependencies": {},
"readme": "# pnpm-list\n\n> List installed packages in a symlinked \\`node_modules\\`\n\n<!--@shields('npm', 'travis')-->\n[](https://www.npmjs.com/package/pnpm-list) [](https://travis-ci.org/pnpm/pnpm-list)\n<!--/@-->\n\n## Install\n\nInstall it via npm.\n\n npm install pnpm-list\n\n## Usage\n\n<!--@example('./example/index.js')-->\n```js\n'use strict'\nconst pnpmList = require('pnpm-list').default\n\npnpmList(__dirname, {depth: 2})\n .then(output => {\n console.log(output)\n //> pnpm-list@0.0.1 /home/zkochan/src/pnpm/pnpm-list/example\n // └─┬ write-pkg@3.1.0\n // ├─┬ sort-keys@2.0.0\n // │ └── is-plain-obj@1.1.0\n // └─┬ write-json-file@2.2.0\n // ├── detect-indent@5.0.0\n // ├── graceful-fs@4.1.11\n // ├── make-dir@1.0.0\n // ├── pify@2.3.0\n // ├── sort-keys@1.1.2\n // └── write-file-atomic@2.1.0\n })\n```\n<!--/@-->\n\n## API\n\n### default: `list(path, [opts]): Promise<string>`\n\nReturns a string output similar to the `npm ls` but for [pnpm](github.com/pnpm/pnpm).\n\n### Arguments\n\n* `path` - *String* - path to the project\n* `[opts.depth]` - *number* - `0` by default. Max display depth of the dependency tree.\n* `[opts.only]` - *dev | prod* - `null` by default. Display only the dependency tree for packages in `devDependencies` or `dependencies`.\n* `[opts.long]` - *Boolean* - `false` by default. If true, show extended information.\n* `[opts.parseable]` - *Boolean* - `false` by default. Show parseable output instead of tree view.\n* `[opts.alwaysPrintRootPackage]` - *Boolean* - `true` by default. Print the root package even if no dependencies found/matched.\n\n### `forPackages(packages, path, [opts]): Promise<string>`\n\nReturns a string output similar to the `npm ls [<@scope>/]<pkg> ...` but for [pnpm](github.com/pnpm/pnpm).\n\n### Arguments\n\n* `packages` - *String[]* - an array of `name@version-range` identifiers, which will limit the results to only the paths to the packages named.\n* `path` - *String* - path to the project\n* `[opts.depth]` - *number* - `0` by default. Max display depth of the dependency tree.\n* `[opts.only]` - *dev | prod* - `null` by default. Display only the dependency tree for packages in `devDependencies` or `dependencies`.\n* `[opts.long]` - *Boolean* - `false` by default. If true, show extended information.\n* `[opts.parseable]` - *Boolean* - `false` by default. Show parseable output instead of tree view.\n* `[opts.alwaysPrintRootPackage]` - *Boolean* - `true` by default. Print the root package even if no dependencies found/matched..\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/pnpm-list.git"
},
"scripts": {
"fix": "tslint -c tslint.json --project . --fix",
"lint": "tslint -c tslint.json --project .",
"md": "tsc && mos",
"prepublishOnly": "tsc",
"test": "npm run lint && preview && ts-node test --type-check",
"tsc": "tsc"
},
"typings": "lib/index.d.ts",
"version": "4.0.1"
}