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.11.0, minimist 1.2.0, nomnom 1.8.1, optimist 0.6.1 and yargs 9.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 (8,808 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 6 years ago), it also has less open issues.
yargs has more versions, more frequent updates and less open pull requests.

In our review commander got 20,386,415 points, minimist got 28,376,797 points, nomnom got 1,090,184 points, optimist got 9,962,777 points and yargs got 23,300,706 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.11.0
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
9.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 meow
Comparison
licenses MIT MIT N/A MIT/X11 MIT
created 6 years ago (Aug, 2011) 4 years ago (Jun, 2013) 6 years ago (Apr, 2011) 7 years ago (Dec, 2010) 4 years ago (Nov, 2013)
modified 2 days ago 5 days ago 4 months ago 4 days ago 18 hours ago
total versions 47 19 25 39 141
version average every 2 months every 3 months every 3 months every 2 months every 10 days
maintainers 5 1 1 3 3
dependencies 0 0 2 2 13
Daily Downloads 1,414,827 1,976,768 73,903 700,402 1,743,837
Weekly Downloads 7,549,955 11,081,533 398,699 3,904,499 8,950,417
Monthly Downloads 31,785,130 43,687,652 1,704,278 15,312,377 35,895,607
open issues 203 56 47 12 128
open pull requests 30 22 12 7 6
stargazers 8,808 2,451 452 2,434 3,438
subscribers 183 34 10 63 64
forks 733 140 57 146 268
wiki
Points
Overall points

20,386,415

Points

28,376,797

Points

1,090,184

Points

9,962,777

Points

23,300,706

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