Skip to main content

Server-side JavaScript platform (Node.js).

# To run a JavaScript file:
node <path/to/file>

# To start a REPL (interactive shell):
node

# To evaluate JavaScript by passing it in the command:
node -e "<code>"

# To evaluate and print result, useful to see node's dependencies versions:
node -p "<process.versions>"

# To activate inspector, pausing execution until a debugger is connected once source code is fully parsed:
node --no-lazy --inspect-brk <path/to/file>