Installations
npm install npm-keyword
Developer Guide
Typescript
Yes
Module System
ESM
Min. Node Version
>=18
Node Version
21.6.2
NPM Version
9.2.0
Score
97.8
Supply Chain
95.7
Quality
76.4
Maintenance
100
Vulnerability
99.6
License
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (87.52%)
TypeScript (12.48%)
Developer
sindresorhus
Download Statistics
Total Downloads
37,517,509
Last Day
47,893
Last Week
176,917
Last Month
838,620
Last Year
9,350,369
GitHub Statistics
52 Stars
57 Commits
8 Forks
6 Watching
1 Branches
8 Contributors
Bundle Size
10.15 kB
Minified
3.74 kB
Minified + Gzipped
Sponsor this package
Package Meta Information
Latest Version
8.0.0
Package Id
npm-keyword@8.0.0
Unpacked Size
6.59 kB
Size
2.50 kB
File Count
5
NPM Version
9.2.0
Node Version
21.6.2
Publised On
26 Feb 2024
Total Downloads
Cumulative downloads
Total Downloads
37,517,509
Last day
9.6%
47,893
Compared to previous day
Last week
-19.9%
176,917
Compared to previous week
Last month
6.7%
838,620
Compared to previous month
Last year
89.8%
9,350,369
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
2
npm-keyword
Get a list of npm packages with keywords
Install
1npm install npm-keyword
Usage
1import {npmKeyword, npmKeywordNames, npmKeywordCount} from 'npm-keyword'; 2 3console.log(await npmKeyword('gulpplugin')); 4//=> [{name: 'gulp-autoprefixer', description: '…'}, …] 5 6console.log(await npmKeywordNames('gulpplugin')); 7//=> ['gulp-autoprefixer', …] 8 9console.log(await npmKeywordCount('gulpplugin')); 10//=> 3457
Caveat
The list of packages will contain a maximum of 250 packages matching the keywords. This limitation is caused by the npm registry API.
API
npmKeyword(keywords, options?)
Returns a promise for a list of packages having the specified keyword in their package.json keywords
property.
keywords
Type: string | string[]
Example: ['string', 'camelcase']
One or more keywords. Only matches packages that have all the given keywords.
options
Type: object
size
Type: number
Default: 250
Limits the amount of results.
npmKeywordNames(keywords, options?)
Returns a promise for a list of package names.
keywords
Type: string | string[]
Example: ['string', 'camelcase']
One or more keywords. Only matches packages that have all the given keywords.
options
Type: object
size
Type: number
Default: 250
Limits the amount of results.
npmKeywordCount(keywords)
Returns a promise for the count of packages.
keywords
Type: string | string[]
Example: ['string', 'camelcase']
One or more keywords. Only matches packages that have all the given keywords.
Related
- package-json - Get the package.json of a package from the npm registry
- npm-user - Get user info of an npm user
- npm-email - Get the email of an npm user
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
- Info: security policy file detected: .github/security.md:1
- Info: Found linked content: .github/security.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/security.md:1
- Info: Found text in security policy: .github/security.md:1
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: license:0
- Info: FSF or OSI recognized license: MIT License: license:0
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Info: no jobLevel write permissions found
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/npm-keyword/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sindresorhus/npm-keyword/main.yml/main?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/main.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'main'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 8 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More