Get Node.js Command Line Arguments with yargs

added by bpwndaddy
8/4/2015 3:30:44 PM

990 Views

Using command line arguments within Node.js apps is par for the course, especially when you're like me and you use JavaScript to code tasks (instead of bash scripts). Node.js provides process.argv but that doesn't provide a key: value object like you'd expect:


0 comments