
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Easy and free library for binding keys.
Keycharm is on npm so you can install it with:
npm install keycharm
Example:
var keys = keycharm(options);
keys.bind("a", function () {}, 'keydown'); // key, callback function, 'keydown' or 'keyup'
Available options (all are optional):
{
container: document.getElementById("element"), // optional div to bind keycharm to. It will NEED a tabindex. When not supplied, this defaults to window.
preventDefault: true/false // default value: false;
}
Supported keys:
'a'-'z', 'A'-'Z', '0'-'9', 'F1'-'F12', 'space', 'enter', 'ctrl', 'alt', 'tab', 'shift',
'delete', 'esc', 'backspace', '-','=', '[', ']', 'left', 'up', 'right', 'down', 'pageup', 'pagedown'
numpad: 'num0'-'num9', 'num/', 'num*', 'num-', 'num+', 'num.'
Each initiation of keycharm has its own bindings to the key events.
Available methods:
.bind(key, callback, [type]); // bind key, type = 'keydown' or 'keyup', default type = keydown.
.unbind(key, [callback], [type]); // unbind key, type = 'keydown' or 'keyup', default type = keydown. No callback deletes all bound callbacks from key
.reset(); // remove all bound keys
.destroy(); // remove all bound keys and the event listeners of keycharm
.getKey(event); // get the key label of the event
.bindAll(function, 'keydown' or 'keyup'); // bind all keys to this function, could be used for testing or demos.
Keycharm is Dual-licensed with both the Apache 2.0 license as well as the MIT license. I'll leave it up to the user to pick which one they prefer.
FAQs
Simple, lightweight key-binding lib
The npm package keycharm receives a total of 274,329 weekly downloads. As such, keycharm popularity was classified as popular.
We found that keycharm 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
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.