Compare

Comparing commander vs. minimist vs. nomnom vs. optimist vs. yargs

How are they different?

Here we compare between commander, minimist, nomnom, optimist and yargs. In this comparison we will focus on the latest versions of those packages. The current versions are commander 2.9.0, minimist 1.2.0, nomnom 1.8.1, optimist 0.6.1 and yargs 6.6.0.

commander, the complete solution for node.js command-line programs. It was authored by TJ Holowaychuk on Aug, 2011.
minimist, parse argument options. It was authored by James Halliday on Jun, 2013.
nomnom, Option parser with generated usage and commands. It was authored by Heather Arthur on Apr, 2011.
optimist, Light-weight option parsing with an argv hash. No optstrings attached. It was authored by James Halliday on Dec, 2010.
yargs, yargs the modern, pirate-themed, successor to optimist. It was authored on Nov, 2013.

When comparing those packages you notice that commander is the more popular package today (7,008 Stars on Github).
commander has more stars on Github, more followers on Github and more forks.
minimist has less dependencies, more daily downloads, more weekly downloads and more monthly downloads.
optimist has been out there for longer (since 5 years ago), it also has less open issues.
yargs has more versions, more frequent updates, a bigger community of maintainers and less open pull requests.

In our review commander got 13,055,258 points, minimist got 16,860,583 points, nomnom got 662,673 points, optimist got 5,470,661 points and yargs got 9,680,287 points. The points are a summary of how big the community is and how well the package is maintained.

Lets dive deeper and have a look at some more details on those packages.

Going into more detail

 

commander
2.9.0
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
6.6.0
NPM

description the complete solution for node.js command-line programs parse argument options Option parser with generated usage and commands Light-weight option parsing with an argv hash. No optstrings attached. yargs the modern, pirate-themed, successor to optimist.
keywords command, option, parser argv, getopt, parser, optimist arguments, option parser, command line, options, parser argument, args, option, parser, parsing, cli, command argument, args, option, parser, parsing, cli, command
author TJ Holowaychuk James Halliday Heather Arthur James Halliday N/A
Related / similar packages
async, bluebird, co, express, active_record co axios axios asynquence
Comparison
licenses MIT MIT N/A MIT/X11 MIT
created 5 years ago (Aug, 2011) 4 years ago (Jun, 2013) 6 years ago (Apr, 2011) 6 years ago (Dec, 2010) 3 years ago (Nov, 2013)
modified 12 hours ago 5 days ago 2 months ago 24 days ago 2 days ago
total versions 45 19 25 39 126
version average every a month every 2 months every 3 months every 2 months every 9 days
maintainers 3 1 1 3 4
dependencies 1 0 2 2 13
Daily Downloads 346,279 448,060 15,506 130,706 238,571
Weekly Downloads 5,931,337 7,648,858 326,890 2,534,219 4,432,049
Monthly Downloads 19,814,307 25,617,645 979,477 8,268,316 14,680,551
open issues 193 47 45 9 74
open pull requests 30 20 11 5 4
stargazers 7,008 1,962 443 2,346 2,442
subscribers 164 34 11 63 48
forks 599 110 57 136 181
wiki
Points
Overall points

13,055,258

Points

16,860,583

Points

662,673

Points

5,470,661

Points

9,680,287

Points
CLI Shortcuts
install npm i -S commander npm i -S minimist npm i -S nomnom npm i -S optimist npm i -S yargs
remove npm r -S commander npm r -S minimist npm r -S nomnom npm r -S optimist npm r -S yargs

Share this with other developers