Find a path of electron bin installed in local or global node_modules
$ npm install --save electron-bin-path
const bin = require('electron-bin-path');
bin().then(p => {
//=> './node_modules/.bin/electron'
});
return promise. resolving with the path first found.
MIT © ragingwind