https://github.com/sindresorhus/has-flag
Score: 30.327618031653543
Last synced: about 1 hour ago
JSON representation
Repository metadata:
Check if argv has a specific flag
- Host: GitHub
- URL: https://github.com/sindresorhus/has-flag
- Owner: sindresorhus
- License: mit
- Created: 2015-07-07T22:40:40.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2026-09-18T19:07:30.000Z (15 days ago)
- Last Synced: 2026-09-24T06:57:10.960Z (10 days ago)
- Language: JavaScript
- Size: 16.6 KB
- Stars: 94
- Watchers: 6
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/funding.yml
- License: license
- Security: .github/security.md
-
Funding:
- Github: sindresorhus
- Open collective: sindresorhus
- Custom: https://sindresorhus.com/donate
Owner metadata:
- Name: Sindre Sorhus
- Login: sindresorhus
- Email:
- Kind: user
- Description: Full-Time Open-Sourcerer. Focused on Swift & JavaScript. Makes macOS apps, CLI tools, npm packages.
- Website: https://sindresorhus.com/apps
- Location:
- Twitter: sindresorhus
- Company:
- Icon url: https://avatars.githubusercontent.com/u/170270?u=34acd557a042ac478d273a4621570cadb6b0bd89&v=4
- Repositories: 1111
- Last Synced at: 2024-10-29T21:14:09.635Z
- Profile URL: https://github.com/sindresorhus
GitHub Events
Total
- Fork event: 2
- Issues event: 1
- Pull request event: 2
- Watch event: 4
- Total: 9
Last Year
- Pull request event: 2
- Watch event: 1
- Total: 3
Committers metadata
Last synced: 1 day ago
Total Commits: 23
Total Committers: 7
Avg Commits per committer: 3.286
Development Distribution Score (DDS): 0.261
Commits in past year: 1
Committers in past year: 1
Avg Commits per committer in past year: 1.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| Sindre Sorhus | s****s@g****m | 17 |
| Richie Bendall | r****l@g****m | 1 |
| Phred | f****e@g****m | 1 |
| Mark Wubben | m****k@n****t | 1 |
| Guy Bedford | g****d@g****m | 1 |
| Dimitri Benin | B****r | 1 |
| Corey Farrell | g****t@c****m | 1 |
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 3
Total pull requests: 11
Average time to close issues: 22 minutes
Average time to close pull requests: 5 days
Total issue authors: 3
Total pull request authors: 11
Average comments per issue: 1.67
Average comments per pull request: 1.64
Merged pull request: 5
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- Eason-Wu (1)
- hamsterready (1)
- Jonathan-den (1)
Top Pull Request Authors
- novemberborn (1)
- guybedford (1)
- fearphage (1)
- coreyfarrell (1)
- barbogast (1)
- Arrow7000 (1)
- BendingBender (1)
- Richienb (1)
- kevinke (1)
- alisonmonteiro (1)
- andyfleming (1)
Top Issue Labels
Top Pull Request Labels
Package metadata
- Total packages: 15
-
Total downloads:
- npm: 1,363,063,999 last-month
- Total docker downloads: 21,172,323,369
- Total dependent packages: 2,775 (may contain duplicates)
- Total dependent repositories: 1,287,734 (may contain duplicates)
- Total versions: 29
- Total maintainers: 1
debian-13: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Documentation: https://packages.debian.org/trixie/node-has-flag
- Licenses: mit
- Latest release: 5.0.1-1 (published 8 months ago)
- Last Synced: 2026-03-14T07:04:24.670Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.641%
- Stargazers count: 1.198%
- Forks count: 1.365%
npmjs.org: has-flag
Check if argv has a specific flag
- Homepage: https://github.com/sindresorhus/has-flag#readme
- Licenses: MIT
- Latest release: 5.0.1 (published about 5 years ago)
- Last Synced: 2026-10-03T03:31:57.211Z (1 day ago)
- Versions: 6
- Dependent Packages: 2,772
- Dependent Repositories: 1,287,734
- Downloads: 1,363,063,999 Last month
- Docker Downloads: 21,172,323,369
-
Rankings:
- Downloads: 0.0%
- Docker downloads count: 0.0%
- Dependent repos count: 0.027%
- Dependent packages count: 0.029%
- Average: 1.771%
- Stargazers count: 5.186%
- Forks count: 5.386%
- Maintainers (1)
-
Funding:
- https://github.com/sponsors/sindresorhus
proxy.golang.org: github.com/sindresorhus/has-flag
- Homepage:
- Documentation: https://pkg.go.dev/github.com/sindresorhus/has-flag#section-documentation
- Licenses: mit
- Latest release: v5.0.1+incompatible (published about 5 years ago)
- Last Synced: 2026-10-03T03:30:36.860Z (1 day ago)
- Versions: 5
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 4.811%
- Average: 4.973%
- Dependent repos count: 5.135%
repo1.maven.org: org.webjars.bowergithub.sindresorhus:has-flag
WebJar for has-flag
- Homepage: http://webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.bowergithub.sindresorhus/has-flag/
- Licenses: MIT
- Latest release: 1.0.0 (published about 8 years ago)
- Last Synced: 2026-10-03T03:30:45.569Z (1 day ago)
- Versions: 1
- Dependent Packages: 1
- Dependent Repositories: 0
-
Rankings:
- Stargazers count: 19.965%
- Forks count: 24.148%
- Average: 27.023%
- Dependent repos count: 31.98%
- Dependent packages count: 31.998%
repo1.maven.org: org.webjars.npm:has-flag
WebJar for has-flag
- Homepage: https://www.webjars.org
- Documentation: https://appdoc.app/artifact/org.webjars.npm/has-flag/
- Licenses: MIT
- Latest release: 5.0.1 (published over 1 year ago)
- Last Synced: 2026-10-03T03:30:43.846Z (1 day ago)
- Versions: 6
- Dependent Packages: 2
- Dependent Repositories: 0
-
Rankings:
- Dependent packages count: 23.155%
- Stargazers count: 27.78%
- Average: 30.439%
- Dependent repos count: 35.301%
- Forks count: 35.517%
debian-12: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Documentation: https://packages.debian.org/bookworm/node-has-flag
- Licenses: mit
- Latest release: 4.0.0-3 (published 8 months ago)
- Last Synced: 2026-09-15T04:27:25.630Z (19 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-24.10: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 5.0.1-1 (published 8 months ago)
- Last Synced: 2026-03-09T07:26:05.172Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 4.0.0-3 (published 8 months ago)
- Last Synced: 2026-03-13T20:17:17.629Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
guix: node-has-flag
Check if argv has a specific flag
- Homepage: https://github.com/sindresorhus/has-flag
- Documentation: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/packages/node-xyz.scm#n1448
- Licenses: expat
- Latest release: 3.0.0 (published 7 months ago)
- Last Synced: 2026-09-25T01:28:43.807Z (9 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-20.04: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 4.0.0-1 (published 8 months ago)
- Last Synced: 2026-03-13T09:23:34.325Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-24.04: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 4.0.0-3 (published 8 months ago)
- Last Synced: 2026-03-06T06:57:17.153Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 4.0.0-3 (published 8 months ago)
- Last Synced: 2026-03-11T10:42:04.353Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Licenses: mit
- Latest release: 4.0.0-2 (published 8 months ago)
- Last Synced: 2026-03-07T16:33:27.613Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-11: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag
- Documentation: https://packages.debian.org/bullseye/node-has-flag
- Licenses: mit
- Latest release: 4.0.0-1 (published 8 months ago)
- Last Synced: 2026-03-13T23:34:22.438Z (7 months ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: node-has-flag
- Homepage: https://github.com/sindresorhus/has-flag#readme
- Documentation: https://packages.debian.org/buster/node-has-flag
- Licenses: mit
- Latest release: 2.0.0-1 (published 8 months ago)
- Last Synced: 2026-09-25T01:28:41.309Z (9 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- ava ^3.15.0 development
- tsd ^0.14.0 development
- xo ^0.38.2 development