guilmour 4d48d7b520 Version 0.1 6 rokov pred
..
index.js 4d48d7b520 Version 0.1 6 rokov pred
license 4d48d7b520 Version 0.1 6 rokov pred
readme.md 4d48d7b520 Version 0.1 6 rokov pred

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