I absolutely love prompts! I recently switched from inquirer to prompts and it helped me reduce my dependency tree.
I love commander as well, It has 0 sub dependencies and since it is popular it has good resources available (there are a lot of articles available about commander).
Great article🦄 I haven't heard about a lot of them before.. I'll give them a try :D!
How’s it going, I'm a Adam, a Full-Stack Engineer, actively searching for work. I'm all about JavaScript. And Frontend but don't let that fool you - I've also got some serious Backend skills.
Location
City of Bath, UK 🇬🇧
Education
11 plus years* active enterprise development experience and a Fine art degree 🎨
Might want to include some logging libraries next?
Segway: one thing I learned from other languages is your cli is just a client and you should keep the functionality in a separate libe that exposes bindings to this client or any future applications.
I'm not familiar with the subject but it seems interesting (I might need this on an issue on gitmoji-changelog, since I want to use it on a website). Do you have some articles about it? Maybe a library you had in mind?
Nice write up! I didn't know about some of those packages.
If you are in the process of building NodeJS CLIs you definitely should check Oclif from Heroku, I wrote a post with an example some time ago here dev.to/fedekau/building-awesome-cl...
I really love solving fun and interesting problems with software. I am a full-time software developer with over a decade of experience doing a bit of everything…Android, web, backend, scripting, etc.
I absolutely love prompts! I recently switched from inquirer to prompts and it helped me reduce my dependency tree.
I love commander as well, It has 0 sub dependencies and since it is popular it has good resources available (there are a lot of articles available about commander).
Great article🦄 I haven't heard about a lot of them before.. I'll give them a try :D!
Thank you 🙏Yesterday, I asked someone why using inquirer over prompts. Thank you for the dependency tree argument 👍
Thank you Saurabh, I'm glad you find Prompts useful!
Few dependencies are one of the main goals of Prompts - High five! 🖐
inquirer and ora are also good
npmjs.com/package/inquirer
npmjs.com/package/ora
I used them too but I did a choice for the article 😢
Thank you for talking about them 👌
Might want to include some logging libraries next?
Segway: one thing I learned from other languages is your cli is just a client and you should keep the functionality in a separate libe that exposes bindings to this client or any future applications.
I'm not familiar with the subject but it seems interesting (I might need this on an issue on gitmoji-changelog, since I want to use it on a website). Do you have some articles about it? Maybe a library you had in mind?
How about OCLIF? Have you thought of Oclif.io?
Didn't know this project, thank you for sharing 🙏
The gluegun framework is also incredible.
infinitered.github.io/gluegun
I am such a fan of Signale and Prompts. I love how simple, yet effective they are.
Prompts is also a fan of you 🎉
There is also 🌈 React for interactive command-line apps, Ink :-)
Used it with pastel for several CLIs. Really nice :)
Nice write up! I didn't know about some of those packages.
If you are in the process of building NodeJS CLIs you definitely should check Oclif from Heroku, I wrote a post with an example some time ago here dev.to/fedekau/building-awesome-cl...
Author of Prompts here! Thank you for featuring the prompts library ❤️
Thank you for your awesome work 🙏
I've used gluegun to create a CLI, it's quite nice and have a lot of functionality out of the box, worth checking it out!
Thanks for this article! I have to try everything 🐘
Thank you 🐘
Nice! I've used
command-line-args
andcommand-line-usage
in the past, but it looks likesyargs
can replace those two. Awesome!Very nice article!
I am going to try all of this for sure, thank you for sharing.
Commander.js seems to be another good option! github.com/tj/commander.js
ASCIIFIED banners can be a great addition to your CLI utilities bringing about stunning looks.
Check out node-banner
Awesome!
Commander is missing from the list 😝
Sorry, this is an opinionated list. I use yargs for this purpose 😉
Thanks a lot