electron-is-dev
Advanced tools
Comparing version 1.0.0 to 1.0.1
'use strict'; | ||
const {app} = require('electron'); | ||
const electron = require('electron'); | ||
const app = electron.app || electron.remote.app; | ||
const isEnvSet = 'ELECTRON_IS_DEV' in process.env; | ||
@@ -5,0 +7,0 @@ const getFromEnv = parseInt(process.env.ELECTRON_IS_DEV, 10) === 1; |
{ | ||
"name": "electron-is-dev", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Check if Electron is running in development", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -7,3 +7,5 @@ # electron-is-dev | ||
You can use this module directly in both the main and renderer process. | ||
## Install | ||
@@ -10,0 +12,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2802
6
43