Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

electron-is-dev

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electron-is-dev - npm Package Compare versions

Comparing version 0.1.2 to 0.2.0

11

index.js
'use strict';
module.exports = process.defaultApp || /[\\/]electron-prebuilt[\\/]/.test(process.execPath) || /[\\/]electron[\\/]/.test(process.execPath);
const getFromEnv = () => {
if ('ELECTRON_IS_DEV' in process.env) {
return parseInt(process.env.ELECTRON_IS_DEV, 10) === 1;
}
return false;
};
module.exports = getFromEnv() || process.defaultApp || /[\\/]electron-prebuilt[\\/]/.test(process.execPath) || /[\\/]electron[\\/]/.test(process.execPath);

2

package.json
{
"name": "electron-is-dev",
"version": "0.1.2",
"version": "0.2.0",
"description": "Check if Electron is running in development",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -27,3 +27,5 @@ # electron-is-dev

Can be overridden by setting the `ELECTRON_IS_DEV` environment variable to `1`.
## Related

@@ -30,0 +32,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc