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 10.0.3.

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 (9,292 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 and less open pull requests.
yargs has more versions and more frequent updates.

In our review commander got 20,979,966 points, minimist got 29,980,241 points, nomnom got 1,480,651 points, optimist got 10,488,004 points and yargs got 27,056,382 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
10.0.3
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) 7 years ago (Apr, 2011) 7 years ago (Dec, 2010) 4 years ago (Nov, 2013)
modified 11 hours ago 4 days ago a month ago 14 days ago 18 hours ago
total versions 47 19 25 39 150
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 12
Daily Downloads 456,892 650,462 26,729 222,011 536,108
Weekly Downloads 8,114,190 11,742,698 588,710 4,094,785 10,772,881
Monthly Downloads 33,364,906 47,559,429 2,342,369 16,650,883 42,791,512
open issues 211 55 47 12 136
open pull requests 30 22 12 7 8
stargazers 9,292 2,566 455 2,461 3,712
subscribers 188 38 10 63 66
forks 757 147 57 145 303
wiki
Points
Overall points

20,979,966

Points

29,980,241

Points

1,480,651

Points

10,488,004

Points

27,056,382

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