akhil
akhil

Reputation: 105

Can we get the electron version of vscode from node js application or command prompt

I am planning to detect the electron version of the vscode from node.js or command prompt.

I know from vscode we can get the electron version by running this command(process.versions.electron) in developer tools. But how can we get it from node.js application or from command prompt?

Upvotes: 2

Views: 3381

Answers (1)

Tobias
Tobias

Reputation: 1564

find the path of vscode and read the package.json file: example:
C:\Program Files\Microsoft VS Code\resources\app\package.json
there you will find the version in the devDependencies object

Upvotes: 3

Related Questions