Created
May 30, 2016 15:37
-
-
Save aGuyNamedJonas/99f523efe6113070302165bf69ddf99a to your computer and use it in GitHub Desktop.
node.js: List commandline arguments (#GistToSelf)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// print process.argv | |
process.argv.forEach(function (val, index, array) { | |
console.log(index + ': ' + val); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment