Find the Electron binaries from anywhere
JavaScript
Latest commit 0ea6f73 Dec 9, 2016 @mathphreak fix: add CI fixes

README.md

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)