| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Simple Command line interface (CLI) application example in NodeJS.
This is a simple example that shows how you can natively play around with the NodeJS command arguments. If you want a complete solution for building NodeJS CLI applications, I'd suggest you go for the Commander library 😻.
Clone the repository.
Stay in the parent folder of the project.
Execute the application:
node nodejs-clithis will automatically execute the index.js file inside the nodejs-cli folder.
Output: No options provided.
node nodejs-cli --helpOutput: This is an example cli app with nodeJS..
node nodejs-cli -hOutput: This is an example cli app with nodeJS..
node nodejs-cli --name AmbratolmOutput: Hello, Ambratolm! Welcome! :D
Licensed under MIT.
| Back | FazBrowse Home | New Git URL |