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.15.1, minimist 1.2.0, nomnom 1.8.1, optimist 0.6.1 and yargs 11.0.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 (11,205 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 31,108,986 points, minimist got 38,196,233 points, nomnom got 3,245,317 points, optimist got 12,030,241 points and yargs got 39,473,155 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.15.1
NPM

minimist
1.2.0
NPM

nomnom
1.8.1
NPM

optimist
0.6.1
NPM

yargs
11.0.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 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) 7 years ago (Dec, 2010) 4 years ago (Nov, 2013)
modified a month ago 2 months ago 2 months ago 2 months ago a month ago
total versions 55 19 25 39 156
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 579,438 895,221 43,934 239,898 654,579
Weekly Downloads 12,675,681 15,759,620 1,366,476 4,934,399 16,342,903
Monthly Downloads 48,934,719 59,728,946 5,076,709 18,877,726 61,934,654
open issues 234 59 52 14 175
open pull requests 30 25 16 9 5
stargazers 11,205 2,929 464 2,519 4,546
subscribers 214 45 9 61 69
forks 873 170 59 154 392
wiki
Points
Overall points

31,108,986

Points

38,196,233

Points

3,245,317

Points

12,030,241

Points

39,473,155

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