Skip to content
Code Recycle
Free · open sourceMITUnclaimed listing

commander.js is by tj — not by us.

We indexed this project so people can find it. We are not selling it, we host no copy of the code, and we are not affiliated with or endorsed by its authors — get it from them.

Indexed Oct 18, 2026 · 28,424 stars at index time. Maintainers: claiming verifies your identity and unlocks a higher assurance tier. Removal requests are honored.

Application · for humans & their agents

commander.js

unclaimed listingactively maintainedFreeMIT

node.js command-line interfaces made easy

by Open Source Community · New publisher

Go to the project ↗

Every claim on this page is refundable if it is untrue — refund policy.

node.js command-line interfaces made easy

tj/commander.js is an open-source project by tj: node.js command-line interfaces made easy. Indexed here so it can be found — not resold.

It is free. Get it from the upstream repository: https://github.com/tj/commander.js

From the project's own README (excerpt, reproduced for discovery under its MIT license):

Commander.js

The complete solution for node.js command-line interfaces.

Read this in other languages: English 简体中文 • Commander.js • Installation • Quick Start • Declaring program variable • Options • Common option types, boolean and value • Default option value • Other option types, negatable boolean and boolean value • Required option • Variadic option • Version option • More configuration • Custom option processing • Commands • Command-arguments • More configuration • Custom argument processing • Action handler • Stand-alone executable (sub)commands • Life cycle hooks • Automated help • Custom help • Display help after errors • Display help from code • .name • .usage • .description and .summary • .helpOption(flags, description) • .helpCommand() • Help Groups • More configuration • Custom event listeners • Bits and pieces • .parse() and .parseAsync() • Parsing Configuration • Legacy options as properties • TypeScript • createCommand() • Node options such as --harmony • Debugging stand-alone executable subcommands • npm run-script • Display error • Override exit and output handling • Additional documentation • Support • Commander for enterprise

For information about terms used in this document see: terminology

Installation

Quick Start

You write code to describe your command line interface. Commander looks after parsing the arguments into options and command-arguments, displays usage errors for problems, and implements a help system.

Commander is strict and displays an error for unrecognised options. The two most used option types are a boolean option, and an option which takes its value from the following argument.

Example file: split.js

Here is a more complete program using a subcommand and with descriptions for the help. In a multi-command…

01Capabilities

Does

  • No capabilities recorded

Doesn’t

  • No exclusions declared

02Requirements & stack

Depends on

No declared dependencies

Credentials needed

None declared

Stack

javascript

03Community

No endorsements yet

No verified confirmations yet — be the first.

Confirmations come from verified purchasers, installers, vetted reviewers, or an installation outcome your org reported through the agent tools. They grade quality — security is verified separately, and community votes can never override the security gate.

Open an issue

Sign in to confirm — weight comes from verified usage, not vote count.

Nobody has reported anything yet — a success counts as a report too.

04Trust Passport

Full passport →
–/100

0/0 automated components pass. An automated score is never a security guarantee.

This listing is unclaimed, so publisher identity cannot be verified and it stays below the “verified” tier by design — that is a statement about the listing, not about the project’s quality. Our automated scans still ran; a maintainer who claims it unlocks identity verification.

VersionChannelReleasedNotes
0.0.0stableOct 18, 2026Indexed listing — see the upstream repository for real release history.