pnpm
Version:
Fast, disk space efficient package manager
149 lines (148 loc) • 7.42 kB
JSON
{
"_args": [
[
{
"raw": "@pnpm/list@1.0.5",
"scope": "@pnpm",
"escapedName": "@pnpm%2flist",
"name": "@pnpm/list",
"rawSpec": "1.0.5",
"spec": "1.0.5",
"type": "version"
},
"/home/zoltan/src/pnpm/pnpm/packages/pnpm"
]
],
"_from": "@pnpm/list@1.0.5",
"_hasShrinkwrap": false,
"_id": "@pnpm/list@1.0.5",
"_location": "/@pnpm/list",
"_nodeVersion": "10.12.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/list_1.0.5_1556137102371_0.8957204178298337"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "6.9.0",
"_phantomChildren": {},
"_requested": {
"raw": "@pnpm/list@1.0.5",
"scope": "@pnpm",
"escapedName": "@pnpm%2flist",
"name": "@pnpm/list",
"rawSpec": "1.0.5",
"spec": "1.0.5",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/@pnpm/list/-/list-1.0.5.tgz",
"_shasum": "a45840b040c3fcc8540c2b052ab3143975422df9",
"_shrinkwrap": null,
"_spec": "@pnpm/list@1.0.5",
"_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm",
"author": {
"name": "Zoltan Kochan",
"email": "z@kochan.io",
"url": "https://www.kochan.io/"
},
"bugs": {
"url": "https://github.com/pnpm/pnpm/issues"
},
"dependencies": {
"@pnpm/read-package-json": "2.0.1",
"@pnpm/types": "3.2.0",
"@types/archy": "0.0.31",
"@types/node": "*",
"@types/ramda": "0.25.39",
"@zkochan/npm-package-arg": "1.0.2",
"archy": "1.0.0",
"chalk": "2.4.2",
"dependencies-hierarchy": "5.0.5",
"p-limit": "2.2.0",
"ramda": "0.26.1"
},
"description": "List installed packages in a symlinked `node_modules`",
"devDependencies": {
"@pnpm/list": "link:",
"@pnpm/logger": "2.1.0",
"@pnpm/tslint-config": "0.0.0",
"@types/common-tags": "1.8.0",
"@types/tape": "4.2.33",
"common-tags": "1.8.0",
"mos": "2.0.0-alpha.3",
"mos-plugin-readme": "1.0.4",
"tape": "4.10.1",
"ts-node": "8.1.0",
"tslint": "5.16.0",
"typescript": "3.4.5"
},
"directories": {},
"dist": {
"integrity": "sha512-YV86lilHwcYDCFdyGNxNdkwdvwwOsjZmDlnHeVCR59XCmcM8XHxgJ5TB3n2CSkZxVmTXZbCpOdWavgy5r+kraQ==",
"shasum": "a45840b040c3fcc8540c2b052ab3143975422df9",
"tarball": "https://registry.npmjs.org/@pnpm/list/-/list-1.0.5.tgz",
"fileCount": 15,
"unpackedSize": 19043,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwMSPCRA9TVsSAnZWagAAAr0P/1AB5VnqXD7bK0OTF+yT\nXwYxK+529EqJzuHNaN2o3pzb0FiKzWirRedm2UCCcZse4blazMY60NtDhSCF\nvKA1gj9uTpKF5chkQzgsnDe0yZn5BzlY5aLZPJKIxNlSvR1LyzLR+MnteZ9H\n6DOCQcl9Rf5VFu5lxomP5N80S/S+Q1NcHzvKDvkMJl08CVgjkYINB6E/cBxN\nd7qkkWmW4zSfhPtZQdrzKlYyZrqnEkXHpVkvpa4jF8ft/b/8SCQBUX6TGt4O\nJxNesgFPrndZOYYV6hmWREopuHlRIZtzHEaQNdkXFMLlyJx8aqQM5jobbTAE\n8sZdnhqaWWDhRF4bcxrMvvIhv6qS5eIVP0GAPfS1awxwR5n6Q2Lq8bnzZZo0\nrnD72SchdJKhs61pXo8BE5Nh6SDQcbKEJfvzVKpizBJ9/TWYiRib8fqlhU58\nQprNo2U7KOMyOOneWGrGBM93AIOMs0hCW6Hjt1j/+Gh83AolTa/9z2k1Widu\n9y61mFQaMukUvex4vCfSAec0b12RUDotmikB1DaOrETL+j03sH9e5Auev/D8\nhEhfCSJhUMOxaPXPyrrrC8N/Xld52+A2uXT5jtFmRZ2AbKbHRSAht4F1Ko0O\n/SAZcui/HiWZcoaVn4q9Rv24XXnEcdpe+CQiYEURJmVUrsBtr/Lm1oMNX3S9\nj1mR\r\n=jiSJ\r\n-----END PGP SIGNATURE-----\r\n"
},
"engines": {
"node": ">=8.15"
},
"files": [
"lib"
],
"homepage": "https://github.com/pnpm/pnpm/blob/master/packages/list#readme",
"keywords": [
"pnpm",
"list",
"ls"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "etamponi",
"email": "emanuele.tamponi@gmail.com"
},
{
"name": "pnpmuser",
"email": "zoltan.kochan@gmail.com"
},
{
"name": "zkochan",
"email": "z@kochan.io"
}
],
"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')-->\n[](https://www.npmjs.com/package/@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": "https://github.com/pnpm/pnpm/blob/master/packages/list"
},
"scripts": {
"fix": "tslint -c tslint.json src/**/*.ts test/**/*.ts --fix",
"lint": "tslint -c tslint.json src/**/*.ts test/**/*.ts",
"md": "tsc && mos",
"prepareFixtures": "cd test && pnpm recursive install --no-link-workspace-packages && cd ..",
"prepublishOnly": "tsc",
"test": "npm run tsc && npm run lint && ts-node test --type-check",
"tsc": "tsc"
},
"typings": "lib/index.d.ts",
"version": "1.0.5"
}