guilmour 4d48d7b520 Version 0.1 %!s(int64=6) %!d(string=hai) anos
..
index.js 4d48d7b520 Version 0.1 %!s(int64=6) %!d(string=hai) anos
license 4d48d7b520 Version 0.1 %!s(int64=6) %!d(string=hai) anos
readme.md 4d48d7b520 Version 0.1 %!s(int64=6) %!d(string=hai) anos

readme.md

electron-is-dev

Check if Electron is running in development

Useful for enabling debug features only during development.

Install

$ npm install --save electron-is-dev

Usage

const isDev = require('electron-is-dev');

if (isDev) {
	console.log('Running in development');
} else {
	console.log('Running in production');
}

Related

License

MIT © Sindre Sorhus