Package
getopts
Parse CLI arguments.
Key numbers
As of 25 Sept 2026
- Weekly downloads
- 3.5m
- +78% over 12 months
- Gzip bundle size
- -
- No Bundlephobia data
- Dependencies
- 0
- Direct, from package.json
- Last release
- 5 years ago
- v2.3.0
- GitHub stars
- 634
- 22 forks
- Open issues / PRs
- 5 / 0
- Contributors
- -
- Commits, last 52 weeks
- 0
Downloads
Last week 2026-09-15 to 2026-09-21
3,453,318 downloads last week, 16,634,240 in the last month. The 12-month change of +78% compares the average of the last 4 weeks with the first 4 weeks of the series.
- Releases, last 12 months
- 021 in total
- Latest version
- 2.3.0, 15 Feb 20215 years ago
- First published
- 8 May 2015
- Last push to GitHub
- 3 Jul 2025448 days before the snapshot
- Repository archived
- No
- Open issues
- 5
- Open pull requests
- 0
- Commits, last 52 weeks
- 0
- Dependents on npm
- 204
Major versions
- v2 first release 2.0.0, 12 Nov 2017
- v1 first release 1.0.0, 28 Oct 2017
- v0 first release 0.0.1, 26 Aug 2017
Recent releases
| Version | Published |
|---|---|
| 2.3.0 | 15 Feb 2021 |
| 2.2.5 | 28 Jun 2019 |
| 2.2.4 | 22 Feb 2019 |
| 2.2.3 | 2 Nov 2018 |
| 2.2.2 | 19 Oct 2018 |
| 2.2.1 | 24 Aug 2018 |
| 2.2.0 | 17 Aug 2018 |
| 2.1.2 | 18 Jul 2018 |
| 2.1.1 | 17 Jul 2018 |
| 2.1.0 | 17 Jul 2018 |
| 2.0.6 | 10 Apr 2018 |
| 2.0.5 | 17 Mar 2018 |
| 2.0.4 | 17 Mar 2018 |
| 2.0.3 | 17 Mar 2018 |
- Module format
- ESM + CommonJSFrom package.json type, main and exports fields
- TypeScript types
- Bundled
- Node.js engine range
- Not declared
- Runtimes
- -
- Unpacked size (npm)
- 18 kB
- Dependencies (0)
- None
npm install getopts- jsDelivr
https://cdn.jsdelivr.net/npm/getopts@2.3.0/ - unpkg
https://unpkg.com/getopts@2.3.0/ - esm.sh
https://esm.sh/getopts@2.3.0
Indexability: Indexed.