Noncollinear Perpendicular Microcrystalline
Miss any of our Open RFC calls?Watch the recordings here! »

electron-is-dev

1.2.0 • Public • Published

electron-is-dev

Check if Electron is running in development

Useful for enabling debug features only during development.

You can use this module directly in both the main and renderer process.

Install

$ npm install electron-is-dev

Requires Electron 3 or later.

Usage

const isDev = require('electron-is-dev');
 
if (isDev) {
    console.log('Running in development');
} else {
    console.log('Running in production');
}

You can force development mode by setting the ELECTRON_IS_DEV environment variable to 1.

Related

License

MIT © Sindre Sorhus

Install

npm i electron-is-dev

DownloadsWeekly Downloads

78,390

Version

1.2.0

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • avatar