{"name":"npm-keyword","version":"6.0.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-check"},"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^9.6.0","registry-url":"^4.0.0"},"devDependencies":{"ava":"^1.3.1","tsd-check":"^0.3.0","xo":"^0.24.0"},"gitHead":"db7e0b7ff3c90eb49a6d519d17b054b4af600bcf","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword#readme","_id":"npm-keyword@6.0.0","_nodeVersion":"8.15.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-kuL4a3H7KvCiejaaadAxigPzRNlUvst0FgWsWKtqqL3hGd66DaNEWk+Hlcuok8r5WtQRFeAU6tztKSPM6kx6hQ==","shasum":"8f01949b5bc206216e67436f8daa5f75ffa3a085","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-6.0.0.tgz","fileCount":5,"unpackedSize":6662,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch33ECRA9TVsSAnZWagAA1PgP+QFYgVI6aiQB/IpegooU\nxzWq/x0vhn34d2O+FLPzEpZsWmkCkgKSAcZk4OGeBKQ68R0QqEHKrnN/Ku/U\nLItPZH5uHH4SvMB/9fwmXb7vZ9tXct38R+DxGd2GHnhigJiv36rxO7dT+op6\nWd7w2fDl4Nu6eS9g0vrmecqnYvWgWdk7sd3Ppb3AFsPZ579o5+eU7OCvGMMV\nKWhY++nYS+pFSz3vTOh22jOdr+czBB/YIilioXnFbP//nvyzSwjGiGqLAjfM\no2SigwBJS0RecTVDRCoQSWvK0blSIrikIPfoHFXqsVxfKoPkI9ctvEGwBbCP\n9EtDh5b4ZJaUWHXfTF4TzYiem0jJNOR3y1FzYjdY8wxkGI/yYQ228UDY1sT7\nyba9OvV2UQ3A6oUQhiveTZ4CEfB2gSL0pFvP7905FpRXEYS70sqJ5tAMpI35\nJal7f2iVuooFS9Bm+x1OoJQR7Juc/l9TdiUDra9gOYV2mcui/Zcn+SqMvTaJ\nBjHbCO+dupRdG4KbgZyy2J/fmKWrbXcI8A0quu95PBrM0/CJTluvGvydGw2C\n/9zPHzJh1Zi8CZW6//jqN6UsvSaqVROlfx1Fg1ieyeb9eYTKac6Q/757YW8H\n3dIdvuEWluQ6IuqcZ8zL8qcJAzxR0t141htGj0mxXXnuzep0Atya71mO9JNY\ntmtq\r\n=eiMo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIApPEqsQvU7rfEpq2X3ltdBrqENnAPAycJpBw6vuJcCZAiEA35FrUgliSwnAsE1cQe/evmxErqJ23W9fwppV1sKBxsU="}],"size":2583,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-6.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-keyword_6.0.0_1552383427538_0.13785339178590217"},"_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":1552383427695,"_cnpm_publish_time":1552383427695,"dist-tags":{"latest":"8.0.0"}}