{"name":"npm-keyword","version":"6.1.0","description":"Get a list of npm packages with a certain keyword","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/npm-keyword.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^9.6.0","registry-url":"^5.1.0"},"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"570c22f8a650eda76dc1beb32851640fb27a82da","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword#readme","_id":"npm-keyword@6.1.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-ghcShMAA28IPhJAP4d3T+tndUPzHmvqEfaYwLG1whi4WJ06pdhA3vqL8gXF+Jn8wiqbaRuGVfjE5VXjOgVpW4Q==","shasum":"13029716f89692a0039054ff1a7a6dfd74205835","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-6.1.0.tgz","fileCount":5,"unpackedSize":7328,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcp9gZCRA9TVsSAnZWagAADlEP/AhuzRX6rjHLkBDH1524\n5xRoYV8NIm2Zga8LhP8lVoeYKbMAF6Yqs0zxFKBhhlq/Xw0e40JWYL70nvsO\n0zBdY4NQh52vOdch+vT3tYnnt68UYldMY4ZQg5cgSS9+a4+p+c2efImC3OgP\neKbCmSfd6ofm+dJpySr1kMiGKmkq9KrUiblWGzhvWjr6VMm4Qtjzl3Fa8Slp\nk51TT17EhRd+1P6vX8qy+R4VPv+UjqaftNX0uQxn9vZZVJd4NxPC9yfIZI37\nybu1P6/XWgcAQR5P8CRBsO6Nlpes5z9X/3N24oI0UAg2xG5tVZuYBtPBhCLB\nsSlcFFFk5GoCrAzwnYNuomo8URH/U9ezBGLTGxxoVK9Vl58TTY+wRA8ebbpo\nm5AJ6+qkMfBVdyU7KhX3An42ewcIEF8CUvp0S8hziYbrT6FaC7O96HzrXYRd\nulprOkLhzfCtdAZVEVezqz2WrR4wMdNRQ1GOem7CkLt1CWONQCoqEmtWgFzt\nIgCbI37oNNf3ROtSnVKK3Tw7RjLKi97vnG1Tls2GMd9j1S7+Yf8VtIOqk1Qg\nnvWjB/DGwiE0kCobbEC5QTjcMRD2LOieX0VhvpcBN8lkwmLGWIVk/9psQOck\nxSABHejPXxim/rk80B3ZYJ7TLOZ+3a8rI6HWodn7ReaETH1r8Ck+MmX9QY3z\nhFa7\r\n=Y+zz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPtRG+IQvCW3ihux96kH7/6lZQy3qmCbTtKa9TTFFrZwIhAM83gLIWXMBHjY5ireUwJGzV8udX7XLWezruXvySzYEh"}],"size":2695,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-6.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-keyword_6.1.0_1554503703940_0.37534233602040046"},"_hasShrinkwrap":false,"readme":"# npm-keyword\n\n> Get a list of npm packages with keywords\n\n## Install\n\n```sh\nnpm install npm-keyword\n```\n\n## Usage\n\n```js\nimport {npmKeyword, npmKeywordNames, npmKeywordCount} from 'npm-keyword';\n\nconsole.log(await npmKeyword('gulpplugin'));\n//=> [{name: 'gulp-autoprefixer', description: '…'}, …]\n\nconsole.log(await npmKeywordNames('gulpplugin'));\n//=> ['gulp-autoprefixer', …]\n\nconsole.log(await npmKeywordCount('gulpplugin'));\n//=> 3457\n```\n\n## Caveat\n\nThe list of packages will contain a maximum of 250 packages matching the keywords. This limitation is caused by the [npm registry API](https://github.com/npm/registry/blob/master/docs/REGISTRY-API.md#get-v1search).\n\n## API\n\n### npmKeyword(keywords, options?)\n\nReturns a promise for a list of packages having the specified keyword in their package.json `keywords` property.\n\n#### keywords\n\nType: `string | string[]`\\\nExample: `['string', 'camelcase']`\n\nOne or more keywords. Only matches packages that have *all* the given keywords.\n\n#### options\n\nType: `object`\n\n##### size\n\nType: `number`\\\nDefault: `250`\n\nLimits the amount of results.\n\n### npmKeywordNames(keywords, options?)\n\nReturns a promise for a list of package names.\n\n#### keywords\n\nType: `string | string[]`\\\nExample: `['string', 'camelcase']`\n\nOne or more keywords. Only matches packages that have *all* the given keywords.\n\n#### options\n\nType: `object`\n\n##### size\n\nType: `number`\\\nDefault: `250`\n\nLimits the amount of results.\n\n### npmKeywordCount(keywords)\n\nReturns a promise for the count of packages.\n\n#### keywords\n\nType: `string | string[]`\\\nExample: `['string', 'camelcase']`\n\nOne or more keywords. Only matches packages that have *all* the given keywords.\n\n## Related\n\n- [package-json](https://github.com/sindresorhus/package-json) - Get the package.json of a package from the npm registry\n- [npm-user](https://github.com/sindresorhus/npm-user) - Get user info of an npm user\n- [npm-email](https://github.com/sindresorhus/npm-email) - Get the email of an npm user\n","publish_time":1554503704150,"_cnpm_publish_time":1554503704150,"dist-tags":{"latest":"8.0.0"}}