Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
electron-debug
Advanced tools
Readme
Adds useful debug features to your Electron app
Toggle DevTools.
Force reload the window.
Open DevTools and focus the Element Inspector tool.
Just install any of these extension and they'll be activated for you:
preloadScriptPath
if the BrowserWindow
's nodeIntegration
is off.$ npm install electron-debug
Requires Electron 5 or later.
const {app, BrowserWindow} = require('electron');
const debug = require('electron-debug');
debug();
let mainWindow;
(async () => {
await app.whenReady();
mainWindow = new BrowserWindow();
})();
Only runs when in development, unless overridden by the isEnabled
option. So no need to guard it for production.
Install keyboard shortcuts and optionally activate DevTools on each created BrowserWindow
.
Type: object
Type: boolean
Type: boolean
Default: true
Show DevTools on each created BrowserWindow
.
Type: string
Default: 'previous'
Values: 'undocked'
'right'
'bottom'
'previous'
'detach'
The dock state to open DevTools in.
Toggle DevTools for the specified BrowserWindow
instance or the focused one.
Type: BrowserWindow
Default: The focused BrowserWindow
Reload the specified BrowserWindow
instance or the focused one.
Type: BrowserWindow
Default: The focused BrowserWindow
Open DevTools for the specified BrowserWindow
instance or the focused one.
Type: BrowserWindow
Default: The focused BrowserWindow
Type: string
The absolute path to a preload script to use in session#setPreloads()
.
Use it to enable devtron
even when nodeIntegration
is turned off.
FAQs
Adds useful debug features to your Electron app
The npm package electron-debug receives a total of 28,077 weekly downloads. As such, electron-debug popularity was classified as popular.
We found that electron-debug demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.