DEV Community

Discussion on: Passing Command-Line Arguments in Node.js

Collapse
 
afewminutesofcode profile image
Aaron

Thanks for sharing Isa, its a great tip for people to know about, I was able to write much cleaner, reusable scripts when I started using this!

Collapse
 
isalevine profile image
Isa Levine

Thanks Aaron! Now I just need to work on validating and parsing command-line inputs in a cleaner, more reusable way... ;)

Collapse
 
afewminutesofcode profile image
Aaron

I will aim to write a quick post on how I did it in an app a while back and see if you think it helps (need to find which repo I did it in first)

Thread Thread
 
afewminutesofcode profile image
Aaron

This might be worth checking out if you are interested. npmjs.com/package/yargs