Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
electron-shortcut-normalizer
Advanced tools
Normalize electron keyboard shortcuts so they work on different operating systems
Normalize electron keyboard shortcuts so they work on different operating systems.
platform
in an options objectCmdOrCtrl
modifier to CommandOrControl
MediaPreviousTrack
npm install electron-shortcut-normalizer --save
const normalize = require("electron-shortcut-normalizer")
normalize('Ctrl+A')
// => 'CommandOrControl+A'
normalize('CommandOrControl+Z', process.platform)
// => 'Command+Z' on Mac OS X
// => 'Control+Z' on Windows and Linux
normalize('CmdOrCtrl+a', 'darwin')
// => 'Command+A'
normalize('CmdOrCtrl+a', 'win32')
// => 'Control+A'
// `Option` is unique to Mac OS X, so it's normalized to `Alt`:
normalize('Option+Up')
// => 'Alt+Up'
For more specific usage information, see test.js
npm install
npm test
None
MIT
Generated by package-json-to-readme
FAQs
Normalize electron keyboard shortcuts so they work on different operating systems
The npm package electron-shortcut-normalizer receives a total of 42 weekly downloads. As such, electron-shortcut-normalizer popularity was classified as not popular.
We found that electron-shortcut-normalizer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.