Skip to content
JS
Package

clap

Command line argument parser

v3.1.1, 7 Feb 2022MITESM + CommonJSTypes: NoneCLI tools and terminal utilities
$ npm install clap

Key numbers

As of 25 Sept 2026
Weekly downloads
939k
+7% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
4 years ago
v3.1.1
GitHub stars
20
7 forks
Open issues / PRs
0 / 1
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
0500k1m1.5mSept 2025Mar 2026Sept 2026High 1m (15 Sept 2026)Low 341.1k (23 Dec 2025)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

938,976 downloads last week, 3,068,246 in the last month. The 12-month change of +7% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
024 in total
Latest version
3.1.1, 7 Feb 20224 years ago
First published
10 Feb 2014
Last push to GitHub
18 Jul 20231,164 days before the snapshot
Repository archived
No
Open issues
0
Open pull requests
1
Commits, last 52 weeks
0
Dependents on npm
38

Major versions

  1. v3 first release 3.0.0, 12 Dec 2021
  2. v2 first release 2.0.0, 9 Dec 2019
  3. v1 first release 1.0.0, 11 Oct 2014

Recent releases

VersionPublished
3.1.17 Feb 2022
3.1.07 Feb 2022
3.0.012 Dec 2021
2.0.116 Dec 2019
2.0.09 Dec 2019
1.2.320 Sept 2017
1.2.218 Sept 2017
1.2.118 Sept 2017
1.2.013 Jun 2017
1.1.316 Mar 2017
1.1.23 Dec 2016
1.1.110 May 2016
1.1.019 Mar 2016
1.0.1016 Dec 2015
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
None
Node.js engine range
^12.20.0 || ^14.13.0 || >=15.0.0
Runtimes
-
Unpacked size (npm)
46 kB
Dependencies (1)
ansi-colors
npm install clap
  • jsDelivrhttps://cdn.jsdelivr.net/npm/clap@3.1.1/
  • unpkghttps://unpkg.com/clap@3.1.1/
  • esm.shhttps://esm.sh/clap@3.1.1
PackageWeekly downloadsGzipLast releaseModuleComparison
gunshi56.8k-8 days agoESM + CommonJS-
zod-opts15.5k-8 months agoCommonJS-
yargs194.7m-4 days agoESM only-
clipanion3.6m-2 years agoESM + CommonJS-
optimist3.5m-12 years agoCommonJS-
group-args19.9k-10 years ago--
argly13.5k-9 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.