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.19.0, minimist 1.2.0, nomnom 1.8.1, optimist 0.6.1 and yargs 12.0.4.

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 (13,269 Stars on Github).
commander has a bigger community of maintainers, more stars on Github, more followers on Github and more forks.
minimist has more daily downloads, more weekly downloads and more monthly downloads.
optimist has been out there for longer (since 7 years ago), it also has fewer open issues.
yargs has more versions, more frequent updates and fewer open pull requests.

In our review commander got 35,809,545 points, minimist got 37,603,739 points, nomnom got 3,513,914 points, optimist got 11,349,069 points and yargs got 37,081,392 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.19.0
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
12.0.4
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 commander, 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
meow meow meow meow caporal
Comparison
licenses MIT MIT N/A MIT/X11 MIT
created 7 years ago (Aug, 2011) 5 years ago (Jun, 2013) 8 years ago (Apr, 2011) 8 years ago (Dec, 2010) 5 years ago (Nov, 2013)
modified a month ago 2 months ago 8 months ago 8 months ago 2 days ago
total versions 60 19 25 39 161
version average every a month every 3 months every 4 months every 2 months every 11 days
maintainers 5 1 1 3 3
dependencies 0 0 2 2 12
Daily Downloads 1,017,746 1,150,333 66,001 369,698 902,425
Weekly Downloads 16,059,156 16,804,584 1,570,114 5,113,233 16,625,042
Monthly Downloads 54,509,610 57,243,098 5,388,197 17,206,679 56,619,127
open issues 263 64 52 14 205
open pull requests 30 28 16 9 2
stargazers 13,269 3,308 465 2,551 5,414
subscribers 238 50 9 61 82
forks 982 178 59 157 494
wiki
Points
Overall points

35,809,545

Points

37,603,739

Points

3,513,914

Points

11,349,069

Points

37,081,392

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

store