electron-prebuilt-path
v2.0.0
Published
Find the Electron binaries from anywhere, whether running in Node or Electron. Defers to [`electron-prebuilt`](https://github.com/electron-userland/electron-prebuilt#programmatic-usage) for all the hard work.
Readme
electron-prebuilt-path
Find the Electron binaries from anywhere, whether running in Node or Electron.
Defers to electron-prebuilt for all the hard work.
Usage
var electronPath = require('electron-prebuilt-path')
var proc = require('child_process')
// will print something similar to /Users/maf/.../Electron, even if run in Electron
console.log(electronPath)
// spawn Electron, even if run in Electron
var child = proc.spawn(electronPath)