Reputation: 105
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
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