{"name":"npm-keyword","version":"3.0.1","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":">=0.10.0"},"scripts":{"test":"xo && node test.js"},"files":["index.js"],"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^4.1.1","object-assign":"^3.0.0","registry-url":"^3.0.3"},"devDependencies":{"ava":"0.0.4","xo":"*"},"gitHead":"5998122a95466d21115fd98d1003e46fecf2e1c0","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword#readme","_id":"npm-keyword@3.0.1","_shasum":"d6e9edc794b35ee9e23249fea328251652b7d218","_from":".","_npmVersion":"2.13.3","_nodeVersion":"3.0.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d6e9edc794b35ee9e23249fea328251652b7d218","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-3.0.1.tgz","integrity":"sha512-7QKzVvpnbCfC9LmZ/4fA8YURs0sXRQXiALtrX8JGd7aOp1P2Mpq1SWDVg6ciUU0SVd4nETVbl2iAZk60EVIs0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGzpGcb0I//ctDiC5qRqpmsvlbG6xepM81t6nD7dFQF5AiBCb8RiLQSVCKK8EepD9Fk8jdYt7/mpZ+txMYNp8cNyuw=="}],"size":2049,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-3.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"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":1440422859446,"_cnpm_publish_time":1440422859446,"dist-tags":{"latest":"8.0.0"}}