🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

electron-is-dev

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-is-dev

Check if Electron is running in development

3.0.1
latest
Version published
Weekly downloads
166K
-29.92%
Maintainers
1
Weekly downloads
 
Created

What is electron-is-dev?

The electron-is-dev package is a simple utility for Electron applications to determine if the app is running in development mode. This can be useful for conditionally enabling or disabling certain features or behaviors during development versus production.

What are electron-is-dev's main functionalities?

Check if in development mode

This feature allows you to check if the Electron app is running in development mode. The code sample demonstrates how to use the electron-is-dev package to log different messages based on the environment.

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

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

Other packages similar to electron-is-dev

FAQs

Package last updated on 13 Jan 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts