OneCompiler

How to get Node.js version inside the app?

I want to display my current node.js version inside my app.

How can I do it programmatically?

1 Answer

5 years ago by

To get the version of node.js inside the app, you can use process

console.log(process.version)

It shows your node.js version

5 years ago by Divya