@zkochan/pnpm
Version:
Fast, disk space efficient package manager
133 lines (132 loc) • 4.62 kB
JSON
{
"_args": [
[
{
"raw": "find-packages@2.2.0",
"scope": null,
"escapedName": "find-packages",
"name": "find-packages",
"rawSpec": "2.2.0",
"spec": "2.2.0",
"type": "version"
},
"/home/zkochan/src/pnpm/packages/pnpm"
]
],
"_from": "find-packages@2.2.0",
"_id": "find-packages@2.2.0",
"_inCache": true,
"_location": "/find-packages",
"_nodeVersion": "6.11.4",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/find-packages_2.2.0_1519472180839_0.22795929787362446"
},
"_npmUser": {
"name": "zkochan",
"email": "z@kochan.io"
},
"_npmVersion": "5.6.0",
"_phantomChildren": {
"graceful-fs": "4.1.11",
"normalize-package-data": "2.4.0",
"parse-json": "4.0.0",
"pify": "3.0.0",
"strip-bom": "3.0.0"
},
"_requested": {
"raw": "find-packages@2.2.0",
"scope": null,
"escapedName": "find-packages",
"name": "find-packages",
"rawSpec": "2.2.0",
"spec": "2.2.0",
"type": "version"
},
"_requiredBy": [
"/"
],
"_resolved": "https://registry.npmjs.org/find-packages/-/find-packages-2.2.0.tgz",
"_shasum": "6514ed2e98d0cf5845f35c4911e168718abb6c1c",
"_shrinkwrap": null,
"_spec": "find-packages@2.2.0",
"_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/zkochan/find-packages/issues"
},
"dependencies": {
"@types/node": "^9.4.6",
"fast-glob": "^2.0.4",
"p-filter": "^1.0.0",
"read-pkg": "^3.0.0"
},
"description": "Find all packages inside a directory",
"devDependencies": {
"@types/tape": "^4.2.29",
"mos": "^2.0.0-alpha.3",
"mos-plugin-readme": "^1.0.4",
"package-preview": "^1.0.3",
"tape": "^4.6.3",
"ts-node": "^5.0.0",
"tslint": "^5.0.0",
"typescript": "^2.1.6"
},
"directories": {},
"dist": {
"integrity": "sha512-+GiwclfYtK8bs+nWnDklODZJ7VRuwCvLmJPbSTP2J1krWVKoSAbIBngKe+de7XqJ7rAa7rxsdl1XEzjKqsrqVw==",
"shasum": "6514ed2e98d0cf5845f35c4911e168718abb6c1c",
"tarball": "https://registry.npmjs.org/find-packages/-/find-packages-2.2.0.tgz",
"fileCount": 6,
"unpackedSize": 7424
},
"engines": {
"node": ">=4"
},
"files": [
"lib"
],
"gitHead": "3ae938d86fbb01716d08ee9222245bd377fdd763",
"homepage": "https://github.com/zkochan/find-packages#readme",
"keywords": [
"find",
"package"
],
"license": "MIT",
"main": "lib/index.js",
"maintainers": [
{
"name": "zkochan",
"email": "zoltan.kochan@gmail.com"
}
],
"mos": {
"plugins": [
"readme"
],
"installation": {
"useShortAlias": true
}
},
"name": "find-packages",
"optionalDependencies": {},
"readme": "# find-packages\n\n> Find all packages inside a directory\n\n<!--@shields('npm', 'travis')-->\n[](https://www.npmjs.com/package/find-packages) [](https://travis-ci.org/zkochan/find-packages)\n<!--/@-->\n\n## Installation\n\n```sh\nnpm i -S find-packages\n```\n\n## Usage\n\n```js\nconst path = require('path')\nconst findPkgs = require('find-packages')\n\nfindPkgs(path.join(__dirname, 'test', 'fixture'))\n .then(pkgs => console.log(pkgs))\n .catch(err => console.error(err))\n //> [ { path: '/home/zkochan/src/find-packages/test/fixture/pkg',\n // manifest: { name: 'foo', version: '1.0.0' } } ]\n```\n\n## API\n\n### `findPackages(dir, [opts])`\n\n#### `dir`\n\nThe directory in which to search for packages.\n\n#### `opts`\n\nParameters normally passed to [glob](https://www.npmjs.com/package/glob)\n\n#### `opts.patterns`\n\nArray of globs to use as package locations. For example: `['packages/**', 'utils/**']`.\n\n#### `opts.ignore`\n\nPatterns to ignore when searching for packages. By default: `**/node_modules/**`, `**/bower_components/**`, `**/test/**`, `**/tests/**`.\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/zkochan/find-packages.git"
},
"scripts": {
"lint": "tslint -c tslint.json --project .",
"md": "mos",
"prepublish": "npm run tsc",
"test": "npm run lint && preview && ts-node test --type-check && mos test",
"tsc": "tsc"
},
"typings": "lib/index.d.ts",
"version": "2.2.0"
}