|
|
hace 8 años | |
|---|---|---|
| .. | ||
| .npminstall.done | hace 8 años | |
| index.js | hace 8 años | |
| license | hace 8 años | |
| package.json | hace 8 años | |
| readme.md | hace 8 años | |
Check if Electron is running in development
Useful for enabling debug features only during development.
$ npm install --save electron-is-dev
const isDev = require('electron-is-dev');
if (isDev) {
console.log('Running in development');
} else {
console.log('Running in production');
}
Can be overridden by setting the ELECTRON_IS_DEV environment variable to 1.
MIT © Sindre Sorhus