How to create a node js command line tool with yargs middleware

When I started building cli tools I noticed that there is a lot of similarity between a server-side program and a command line tool. Think of the command that a user types as the route or url. For example `cli-tool project new` in a server environment will be the following url `example.com/project/new`.

#nodejs# cli# yargs# middleware
Loading...