Created
January 24, 2022 16:26
-
-
Save hidsh/a42b27d779bbb59c23e1cdbdc26f7a6c to your computer and use it in GitHub Desktop.
nodeではargs[2]が最初の引数になる。
This file contains hidden or 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
console.log(`arg length: ${process.argv.length}\n`); | |
for(let i=0; i<process.argv.length; i++){ | |
console.log(`argv[${i}]: ${process.argv[i]}`); | |
} | |
console.log('\n※ nodeではargs[2]が最初の引数になる。'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment