{"name":"npm-keyword","version":"1.1.1","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":"node test.js"},"files":["index.js"],"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^2.3.0","registry-url":"^3.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"6fbe493b3bad3d742f0f88dc15325c8c9b447b66","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword","_id":"npm-keyword@1.1.1","_shasum":"7c26278ce57d9eea28eff9283b7c6db2c33a8320","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"7c26278ce57d9eea28eff9283b7c6db2c33a8320","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-1.1.1.tgz","integrity":"sha512-9+zbluVxUQY3S4fC3QDBc4l2335tUAQDsIy0ZrSmvKg3ejhTvRIvyioOtpGcjIgueOyuxvgEn+q/RU845Pe3vQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGqqszmCb0x+Yxcsx7vsNm+YLowxHSVjdI0Fk5mGki/jAiAbdaeAaWMYKkeNLZCIxD/KCLr+MjOVgbfL9fdP7k2E8g=="}],"size":1199,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-1.1.1.tgz"},"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":1425467593347,"_cnpm_publish_time":1425467593347,"dist-tags":{"latest":"8.0.0"}}