tj/commander.js
72.7
Strong · 13 November 2026
4.9k
lines of production code
JavaScript
primary language
5
measurements over time
What this system is
Behavioural changes
140 commits (12 fixes) modifying typings
A change to existing behaviour in typings — 140 commits (12 fixs), 2 files: “Convert typings tests to tsd (\#1453)”; “add parseArg to Argument class (\#2359)”; “Add strong typing of .opts() using generics (\#1539)”; and 137 more (refs \#1453, \#2359, \#1539, \#1827, \#1534, …).
typings · medium confidence · unverified
194 commits (27 fixes) modifying lib
A change to existing behaviour in lib — 194 commits (27 fixs), 7 files: “added input methods”; “Remove low-value argument test (\#1701)”; “refactor: use endsWith (\#2396)”; and 176 more (refs \#1701, \#2396, \#2359, \#1522, \#1534, …).
lib · medium confidence · unverified
671 commits (74 fixes) modifying (repo-wide)
A change to existing behaviour in (repo-wide) — 671 commits (74 fixs), 21 files: “update README”; “add attributeName() method to Option objects”; “Note that updated dependencies too”; and 639 more (refs \#2517, \#1453, \#2294, \#1385, \#1436, …).
(repo-wide) · low confidence · unverified
98 commits (12 fixes) modifying examples
A change to existing behaviour in examples — 98 commits (12 fixs), 48 files: “added input methods”; “fix mergeconfict”; “docs”; and 93 more (refs \#1828, \#1149, \#652, \#1365, \#2180, …).
examples · medium confidence · unverified
Test coverage
146 commits adding/updating tests in tests; 3 commits adding/updating tests in tests/fixtures-extensions; 4 commits adding/updating tests in test; 9 commits adding/updating tests in tests/fixtures.
Dependencies
368 commits updating dependencies (2 manifests)
A dependency / build maintenance change in (dependencies) — 368 commits (15 fixs), 2 files: “Update eslint to resolve vulnerabilities in lodash”; “Bump typescript from 5.5.4 to 5.6.2 (\#2255)”; “Release 1.3.0”; and 359 more (refs \#2255, \#2217, \#2417, \#1453, \#2082, …).
(dependencies) · high confidence · unverified
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 72 → 73 (+0.5)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.
Lenses
- Code Health 65 → 65 (+0.0)
- Architecture 96 → 96 (+0.0)
- Maturity 64 → 65 (+1.2)
- Readiness 89 → 89 (-0.1)
- Security 96 → 95 (-0.9)
- Performance 100 → 100 (+0.0)
Resolved (6)
- High CVE: [GHSA redacted] (package-lock.json)
- Off-boarding risk: anonymized user #1
- Redundant singular/plural naming convention for the same operation. alias sets a single alias, while aliases sets multiple. This forces users to choose between two methods that do the exact same thing (setting command aliases) based solely on arity, which is inconsistent with the rest of the API where single methods often handle arrays or variadic arguments (e.g., Command.arguments(names)).
- Skipped test: when subcommand suffix is .ts then lookup succeeds (tests/command.executableSubcommand.lookup.test.js)
- Three methods for generating or displaying help text with unclear boundaries. help() likely prints to stderr, outputHelp() likely prints to stdout or returns a string (depending on implementation not shown, but naming suggests output vs info), and helpInformation() likely returns the string. The distinction between 'help' and 'outputHelp' is semantically weak, and 'helpInformation' is an outlier in naming convention (noun vs verb).
- Two distinct methods for configuring the help subcommand with confusingly overlapping responsibilities. helpCommand appears to be a convenience toggle/configuration, while addHelpCommand allows injecting a custom Command instance. The naming helpCommand vs addHelpCommand is inconsistent with the pattern of addCommand/command and creates ambiguity about which to use for standard configuration.
New (9)
- Medium CVE: [GHSA redacted] (package-lock.json)
- Off-boarding risk: anonymized user #1
- doc comments repeat the names (lib/command.js)
- redundant comment (lib/help.js)
- redundant comment (tests/commander.storeOptionsAsProperties.test.js)
- redundant comment (tests/options.bool.test.js)
- redundant comment (tests/options.optional.test.js)
- redundant comment (tests/options.optional.test.js)
- redundant comment (typings/index.test-d.ts)
Changes since last survey
- 7 commits — 6 feature/other, 1 fixes
By area
- (root) — 5 commits
- .github/workflows — 1 commit
- docs/deprecated.md — 1 commit
Notable commits
- fix: Fix compare links in CHANGELOG (#2678)
- change: 15.1.0
- change: Bump minor version for next release since includes deprecations (#2677)
- change: Deprecate combineFlagAndOptionalValue (#2660)
- change: Undeprecate InvalidOptionArgumentError (#2661)
- change: Update CHANGELOG for 15.0.1 (#2670)
- change: Update codeql-action (#2666)
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
tj/commander.js was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit a5a7dc084d4d2b7932e85ca049c5204e50a2c721 — the exact code this score is about.
- Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.63+preprod-4a8cc97a9484.