I have a web server written in Node.js and I would like to launch with a specific folder. I\'m not sure how to access arguments in JavaScript. I\'m running node like this:>
The best way to pass command line arguments to a Node.js program is by using a Command Line Interface (CLI)
There is a nifty npm module called nodejs-cli that you can use.
If you want to create one with no dependencies I've got one on my Github if you wanna check it out, it's actually quite simple and easy to use, click here.