Web
NodeJS | process.argv[2];
taenyLog
2023. 6. 21. 05:43
반응형
노드로 앱을 시작할 때 제공하는 인수이다.
처음에 두 개의 매개변수가 명령과 파일이기 때문에 2로시작한다.
process.argv = ['node', 'yourscript.js', ...]
stackoverflow
What does "process.argv[2]" mean in this Node fs write function?
Just started learning Node and I'm reviewing exercises from class today. Can't remember what the "process.argv[2]" refers to when writing a new file using fs. I'm thinking [0] would refer...
stackoverflow.com
반응형