{"name":"npm-keyword","version":"4.1.0","description":"Get a list of npm packages with a certain keyword","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/npm-keyword"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^5.0.0","object-assign":"^4.0.1","pinkie-promise":"^1.0.0","registry-url":"^3.0.3"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"b4c77001de275d087a42a18fc87c754ec74b8141","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword","_id":"npm-keyword@4.1.0","_shasum":"f81ce1d2158b6a60b6b1e72ca34723867d6dc270","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"f81ce1d2158b6a60b6b1e72ca34723867d6dc270","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-4.1.0.tgz","integrity":"sha512-GRyBdX2yjH9aF5kXDanvfk7uqCidL+wcmiW0kZwgD+oALiPaRaTn2UgYiJoEtSChlYJUuoK0z6PYIeUBqI8JpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcGze58Hc3FXoMiflbdaiJRcvhCF9XNsjlJk9D8I//pAiEAiS7lqkWVJ9E9Svtqp7aoD3cuQTBm3XxRR9xdHcMiGhQ="}],"size":2092,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-4.1.0.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":1445191172085,"_cnpm_publish_time":1445191172085,"dist-tags":{"latest":"8.0.0"}}