
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@todesktop/electron-selected-text-prebuild
Advanced tools
Get selected text from any application using Electron's clipboard and robotjs
For Electron 9 and later, this module should only be used in the main process because robotjs is not context aware
$ npm install electron-selected-text
import { app } from "electron";
import { getSelectedText, registerShortcut } from "electron-selected-text";
const printSelectedText = (selectedText) => {
console.log(`Selected Text: ${selectedText}`);
};
getSelectedText().then(printSelectedText);
app.whenReady().then(() => {
const ret = registerShortcut("F6", printSelectedText);
if (!ret) {
console.warn("registration failed");
}
});
FAQs
a utility to get selected text for Electron apps
The npm package @todesktop/electron-selected-text-prebuild receives a total of 669 weekly downloads. As such, @todesktop/electron-selected-text-prebuild popularity was classified as not popular.
We found that @todesktop/electron-selected-text-prebuild demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.