If you want to know the NodeJS version on which your code is running programatically, then you can use the process.version to show that.
process.version
console.log(process.version); //v12.13.1