Ultimate Cheatsheet for Developers

Curated list of useful resources and cheatsheets for web developers

View the Project on GitHub zlatanstajic/ultimate-cheatsheet-for-developers

Node

JavaScript runtime built on Chrome’s V8 JavaScript engine.

Read more about Node.

Table of Contents

↩ back to list of cheatsheets

See also: npm — package manager for Node.js.

Misc

# Show Node.js version
node -v

# Show Node.js version (alternative)
node --version

# Syntax check (lint)
node -c [path-to-the-file]

# Start a REPL (interactive shell)
node

# Run a JavaScript file
node [filename.js]

# Print process info
node -p "process"

# Evaluate JavaScript expression from command line
node -e "console.log('Hello, Node!')"

⬆ back to top