Skip to content
JS
Package

type-flag

Typed command-line arguments parser

v4.5.2, 19 Sept 2026MITESM + CommonJSTypes: BundledCLI tools and terminal utilitiesTypeScript tooling
$ npm install type-flag

Key numbers

As of 25 Sept 2026
Weekly downloads
387.8k
+430% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
0
Direct, from package.json
Last release
6 days ago
v4.5.2
GitHub stars
229
4 forks
Open issues / PRs
1 / 5
Contributors
-
Commits, last 52 weeks
57

Downloads

Last week 2026-09-15 to 2026-09-21
0200k400k600kSept 2025Mar 2026Sept 2026High 545.6k (18 Aug 2026)Low 67.2k (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.

387,849 downloads last week, 1,906,824 in the last month. The 12-month change of +430% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
1117 in total
Latest version
4.5.2, 19 Sept 20266 days ago
First published
16 Aug 2021
Last push to GitHub
25 Sept 2026same day as the snapshot
Repository archived
No
Open issues
1
Open pull requests
5
Commits, last 52 weeks
57
Dependents on npm
18

Major versions

  1. v4 first release 4.0.0, 2 Nov 2025
  2. v3 first release 3.0.0, 9 Nov 2022
  3. v2 first release 2.0.0, 17 Dec 2021
  4. v1 first release 1.0.0, 16 Aug 2021

Recent releases

VersionPublished
4.5.219 Sept 2026
4.5.113 Sept 2026
4.5.014 Jun 2026
4.4.014 Jun 2026
4.3.017 May 2026
4.2.018 Apr 2026
4.1.06 Mar 2026
4.0.32 Dec 2025
4.0.26 Nov 2025
4.0.16 Nov 2025
4.0.02 Nov 2025
3.0.09 Nov 2022
2.2.030 Jun 2022
2.1.028 Jan 2022
Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
45 kB
Dependencies (0)
None
npm install type-flag
  • jsDelivrhttps://cdn.jsdelivr.net/npm/type-flag@4.5.2/
  • unpkghttps://unpkg.com/type-flag@4.5.2/
  • esm.shhttps://esm.sh/type-flag@4.5.2
PackageWeekly downloadsGzipLast releaseModuleComparison
pintor9.8k-3 months agoESM + CommonJS-
@inquirer/type43.6m-22 days agoESM only-
@inquirer/figures37.9m-22 days agoESM only-
@inquirer/prompts27.9m-17 days agoESM only-
clipanion3.6m-2 years agoESM + CommonJS-
trpc-cli174.5k-2 months agoESM only-
fast-text-table6.8k--ESM + CommonJS-
@oh-my-pi/pi-tui73.9k-1 day agoESM only-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Indexed.