Node.js 24 cheatsheet
Node.js 24: Getting started
6 common Node.js 24 tasks.
Run a one-line expression
Evaluate a snippet and print the result without creating a file.
node -p "process.versions.v8"
Restart on file changes
Re-run the script automatically whenever it or its imports change.
node --watch app.js
Load environment variables from a file
Read variables from a .env file into process.env before the script starts.
node --env-file=.env app.js