node -e 'console.log(process.version)'
Category: Node.js & npm/yarn
node -e 'console.log(process.version)'
Execute a one-liner JavaScript expression directly from the terminal without a file
Runs a JavaScript one-liner directly in the terminal without needing a file. -e means 'evaluate this string as code'.