$ npm install is-electron
Detect if running in Electron.
npm install --save is-electron
import isElectron from 'is-electron';
console.log(isElectron());
Copyright (c) 2016 Cheton Wu
Licensed under the MIT License.
© 2010 - cnpmjs.org x YWFE | Home | YWFE