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

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 (12,642 Stars on Github).
commander has a bigger community of maintainers, more stars on Github, more followers on Github and more forks.
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 34,683,459 points, minimist got 38,922,560 points, nomnom got 3,515,502 points, optimist got 11,528,034 points and yargs got 40,855,253 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.18.0
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
12.0.2
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 12 days ago 14 days ago 6 months ago 6 months ago 11 days ago
total versions 59 19 25 39 159
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 0 0 0 0 0
Weekly Downloads 11,191,150 12,285,899 1,070,954 3,598,671 12,366,527
Monthly Downloads 58,144,524 65,549,981 5,956,536 19,448,873 69,328,361
open issues 258 62 52 14 201
open pull requests 30 27 16 9 5
stargazers 12,642 3,198 464 2,549 5,167
subscribers 231 50 9 62 75
forks 954 177 59 156 472
wiki
Points
Overall points

34,683,459

Points

38,922,560

Points

3,515,502

Points

11,528,034

Points

40,855,253

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