version

abstract val version: String(source)

The process.version property contains the Node.js version string.

import { version } from 'node:process';

console.log(`Version: ${version}`);
// Version: v14.8.0

To get the version string without the prepended v, useprocess.versions.node.

Since

v0.1.3