{"name":"npm-keyword","version":"1.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":"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":"2e6e857b5c18dfd7af5d24b7e3c6aa817890d95e","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword","_id":"npm-keyword@1.1.0","_shasum":"e74b5db62221707db4994a6ba8594caa193b9939","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"e74b5db62221707db4994a6ba8594caa193b9939","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-1.1.0.tgz","integrity":"sha512-Hae9wX38rZ4f7y+hPwrLAGU1yssnlZvsz3Eb5WRhgtUMTdMgtuF+rUBiWfSQAR9l6N+HNXm7/bxORcDMmYtgbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCO4gFYlU4VXCPCK4UbHNMVD50uzMo6XqghQ+MNTKpSIwIhAJ5bUDKJw+PSzqrd6lWAJMdHZagvy8FLNqKiUpmS2NE3"}],"size":1880,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-1.1.0.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":1424678474332,"_cnpm_publish_time":1424678474332,"dist-tags":{"latest":"8.0.0"}}