EN
Node.js - get version programmatically (at runtime)
7
points
In this article, we would like to show how to get Node.js version programmatically.
Quick solution:
const version = process.version;
Practical example
Example index.js
file:
console.log(process.version);
Example output:
v16.13.0