guilmour 4d48d7b520 Version 0.1 | 6 years ago | |
---|---|---|
.. | ||
index.js | 6 years ago | |
license | 6 years ago | |
readme.md | 6 years ago |
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');
}
MIT © Sindre Sorhus