Commander has been around for a good while now, and is a pretty solid library. I really appreciate how easy it makes writing git style subcommands with good isolation of options/flags between the entry-point command vs subcommands.
chalk is only tangentially related, but it is great. Switching my reporting/output layer from color to chalk took about 5 minutes. Chalk is a much better library.
Somewhat related, but I've been looking for a node.js-based module for providing a telnet/MUD CLI but either it's implemented through a web page with an input box, or has only the basic telnet protocol fleshed out with no user interaction. Any ideas?
Armin Ronacher explained why he made click and particular cases where docopt was too limited (although he said for cases where docopt works then it is very good).
Also docopt only does command line parsing, that is only a very small part of a command line interface and there are lots of libraries like inquirer (https://github.com/sboudrias/inquirer.js) that a very good at doing the other stuff.
inquirer.js (https://github.com/sboudrias/inquirer.js) is very good for asking the user questions and getting input e.g.
- checkboxes
- lists
- confirms
- text input
21 comments
[ 5.4 ms ] story [ 61.0 ms ] threadexample of a subcommand heavy CLI using commander: [mite-node](https://github.com/jdc0589/mite-node/blob/master/lib/cli/ind...)
Might that be what you're looking for?
Yes, there is a Node.js implementation.
Also docopt only does command line parsing, that is only a very small part of a command line interface and there are lots of libraries like inquirer (https://github.com/sboudrias/inquirer.js) that a very good at doing the other stuff.
etc.