{"_id":"@cjser/npm-keyword","name":"@cjser/npm-keyword","dist-tags":{"latest":"8.0.0-cjser.2"},"versions":{"8.0.0-cjser.2":{"name":"@cjser/npm-keyword","version":"8.0.0-cjser.2","description":"Get a list of npm packages with keywords","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","require":"./dist-cjser/index.cjs","default":"./index.js"},"sideEffects":false,"engines":{"node":">=18"},"scripts":{"test":"xo && ava && tsd"},"keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"dependencies":{"@cjser/ky__v1_14_3":"1.14.3-cjser.2","@cjser/registry-url__v6_0_1":"6.0.1-cjser.2"},"devDependencies":{"ava":"^6.1.1","tsd":"^0.30.7","xo":"^0.57.0"},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"8.0.0","cjserVersion":2,"original":{"name":"npm-keyword","version":"8.0.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/npm-keyword","dependencies":{"ky":"^1.2.1","registry-url":"^6.0.1"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/npm-keyword@8.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-JHP6bQ/u9o4dUkEF50tyHuQkd99L8cs0mdlMSjbLqsYWdIzIqJSa93ULNSyv8mYucPbqEkAGCViM7x/Qz3jO2Q==","shasum":"4bbd17ced241e9ea1f6733010556d6003807ee3c","tarball":"https://registry.npmjs.org/@cjser/npm-keyword/-/npm-keyword-8.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":10921,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDwolbvnxIZ0/MK5ZBQamDD5KFs7mrOyOF9eGh9oQyOFwIgQAYuEn1zQRnuKhJVAsWQUsjXYbQriE8RXSjxssPcW7I="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/npm-keyword_8.0.0-cjser.2_1778159200616_0.01508769502564511"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:06:40.469Z","8.0.0-cjser.2":"2026-05-07T13:06:40.765Z","modified":"2026-05-07T13:06:41.028Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Get a list of npm packages with keywords","keywords":["npm","keyword","package","packages","pkg","registry","find","search"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/npm-keyword\n","readmeFilename":"readme.md","_rev":"1-c7444b65612d8d572070fc1ff6dac9d1"}