
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
electron-accelerator-formatter
Advanced tools
Formats an Electron accelerator as a string of Unicode characters.
Formats an accelerator as a string of Unicode characters.
Handles Windows and Mac, not yet Linux.
Works in both Electron (i.e. Node) and the browser!
For Electron:
npm install electron-accelerator-formatter --save
For the browser:
bower install electron-accelerator-formatter --save
In Electron:
var acceleratorFormatter = require('electron-accelerator-formatter');
var accelerator = 'CmdOrCtrl+Shift+M';
// Prints '⌘⇧M' on Mac, '^⇧M' on Windows
console.log(acceleratorFormatter(accelerator));
In the browser:
<!-- Loads `electronAcceleratorFormatter` into `window`. -->
<script src="bower_components/electron-accelerator-formatter/dist/bundle.min.js"></script>
<script type="text/javascript">
var accelerator = 'CmdOrCtrl+Shift+M';
// Prints '⌘⇧M' on Mac, '^⇧M' on Windows
console.log(electronAcceleratorFormatter(accelerator));
</script>
We welcome pull requests! Please lint your code.
To run the Node tests: npm test.
To run the browser tests: npm run-script build-test && npm run-script open-test.
npm run-script build
FAQs
Formats an Electron accelerator as a string of Unicode characters.
The npm package electron-accelerator-formatter receives a total of 2 weekly downloads. As such, electron-accelerator-formatter popularity was classified as not popular.
We found that electron-accelerator-formatter 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.