Level 1M2Lesson 2.8

beginner35 minby DevFox

Your first input: command-line arguments with process.argv

Give a program its input on the line that starts it. See how the terminal splits the line, what Node puts in process.argv, and read each word by its index from 0. Keep words together with quotes, teach TypeScript about Node with @types/node, turn typed digits into a number, read TS2363, and make TaskKit read a command and a task.

  • Fundamentals
  • TypeScript
Your first input: command-line arguments with `process.argv`. Read this lesson at .