2.0.0 • Published 7 years ago
electron-prebuilt-path v2.0.0
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)