{"name":"npm-keyword","version":"7.0.0","description":"Get a list of npm packages with keywords","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/npm-keyword.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","types":"./index.d.ts","engines":{"node":">=14.16"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"got":"^12.1.0","registry-url":"^6.0.0"},"devDependencies":{"ava":"^4.3.0","tsd":"^0.20.0","xo":"^0.49.0"},"gitHead":"5421f5d866eab3dd438d70c38307b730fdd6c974","bugs":{"url":"https://github.com/sindresorhus/npm-keyword/issues"},"homepage":"https://github.com/sindresorhus/npm-keyword#readme","_id":"npm-keyword@7.0.0","_nodeVersion":"14.19.2","_npmVersion":"8.3.2","dist":{"integrity":"sha512-38In012KmfSq6sDrYTvXseJIS23OXG9zcZV6F+O4/+npqb/EIaQQqUlaly5UUDSEF3cwQDpm/kMSSr6EYFxEug==","shasum":"85d40c101f9e5f04c4da5aeec801608ebe698979","tarball":"http://registry-npm.ywwl.com/npm-keyword/download/npm-keyword-7.0.0.tgz","fileCount":5,"unpackedSize":6513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEcoI77IBBn4K34sRPy7Vqx69EGz60Nuty953S5hI+RWAiADnQajiD/KxeFvwMc8Wy76whzDRlcrS2tNPWhOesJHJA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJineCrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6ShAAjrkUl1pZOUCSdqVeUwMMdUSRO6fDSGG6XxeRZod62gnLu8KL\r\nFYIxTPGfMmbXtBD9zCAh+gVmhkdVfHGpUJaGjfTM4XcTQm9sbc/mvN/y5LVT\r\nMhfmscFrKr/m3kAHx0ss6c++I6YU6DTXGmqNqeg4hpLGuP10vKnihXAvQr7I\r\n7oF8Nl+DAAViANk7E6ZKw83Q4eHg6tyYCsQzscqaoFu/mnSquRnqDIHmdIFl\r\n9LciQ8qE6tl9cWXOjeAeLOeUkN6mwE0GI3aeN3c5/aRUC01ngNnWbFAB+ACD\r\nBYZgiKO5uMKPOcF9ubEzdrkrb9Bo+h4XVgwl4DI8eg67vnwpblxZ5UZq6QNq\r\nYLwVjtq2/hQMUNz6QwCzB4Q1bMgEqxXz/J/zVfP2BFgdC8DzFgPe1rDLLyVY\r\nTiygePDH2vQX3OyTFkfTyZOC04AHYfjSEKEH8KeO74XDBcxFoULzZcx5D6vy\r\n/eC3QgxvvDxOaShRoxmh2AK24F6OjJPqqv6cxnglXFQpSN9tSokuKQRQHIQN\r\n0v43tZj4VlFyStoxMFQr4DcFD9AgKy6/+2qdY+pF7izMHLgo1QZdPPFQ+p6Q\r\na1aJS0SonDydqVH3PmHGaRTPRqv6FJTrBsJTmJq+DkApqoXJv4EmYrS0FFEd\r\nuvZZgTg0i/YCOj69Q7tgPdAJB/wce1JmmzE=\r\n=WeXR\r\n-----END PGP SIGNATURE-----\r\n","size":2527,"noattachment":false,"key":"/npm-keyword/-/npm-keyword-7.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-keyword_7.0.0_1654513835671_0.10986454560177661"},"_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":1654513835865,"_cnpm_publish_time":1654513835865,"dist-tags":{"latest":"8.0.0"}}