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

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 (11,893 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.
optimist has been out there for longer (since 7 years ago), it also has fewer open issues.
yargs has more versions, more frequent updates, more weekly downloads, more monthly downloads and fewer open pull requests.

In our review commander got 33,888,230 points, minimist got 40,656,381 points, nomnom got 3,615,443 points, optimist got 12,443,151 points and yargs got 42,999,143 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.16.0
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
12.0.1
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) 7 years ago (Apr, 2011) 8 years ago (Dec, 2010) 5 years ago (Nov, 2013)
modified 17 days ago 4 months ago 4 months ago 4 months ago 18 days ago
total versions 56 19 25 39 158
version average every a month every 3 months every 3 months every 2 months every 11 days
maintainers 5 1 1 3 3
dependencies 0 0 2 2 12
Daily Downloads 619,687 784,445 45,470 218,217 685,819
Weekly Downloads 13,503,156 15,913,416 1,448,016 4,996,305 17,156,315
Monthly Downloads 53,624,020 64,605,951 5,733,887 19,663,292 68,141,322
open issues 242 60 53 14 181
open pull requests 30 26 16 9 3
stargazers 11,893 3,061 463 2,531 4,840
subscribers 218 47 9 62 70
forks 907 172 59 156 415
wiki
Points
Overall points

33,888,230

Points

40,656,381

Points

3,615,443

Points

12,443,151

Points

42,999,143

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