The smallest possible Node.js program.
This repo is intentionally tiny so we can focus on the workflow:
- run a Node script from the terminal
- re-run it with Node’s built-in watch mode
- Node.js installed (includes
node)
Check your version:
node -vThis repo contains a single file:
app.js
Run it:
node app.jsYou should see:
Hello, NodeNode can automatically re-run your script when files change:
node --watch app.jsNow edit app.js (change the message), save, and watch Node re-run it.
To stop watch mode:
- Press
Ctrl + C
.
├── app.js
└── README.mdNode2Know-Learn-1.0 (see LICENSE).