
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
linux-key-info
Advanced tools
A simple utility for getting key info for a given linux key code.
# using npm
npm i --save linux-key-info
# or yarn
yarn add linux-key-info
// get info for a given key code
const keyCodeInfo = require('linux-key-info').keyCodeInfo;
console.log(keyCodeInfo(30).name); // 'A'
console.log(keyCodeInfo(30).char); // 'A'
console.log(keyCodeInfo(1).name); // 'ESC'
console.log(keyCodeInfo(1).char); // ''
// list all known keys
const listAllKnownKeys = require('linux-key-info').listAllKnownKeys;
console.log('All known keys:',listAllKnownKeys());
$ npm i input-event linux-key-info --save
const InputEvent = require('input-event');
const keyCodeInfo = require('linux-key-info').keyCodeInfo;
const input = new InputEvent('/dev/input/event0');
const keyboard = new InputEvent.Keyboard(input);
keyboard.on('keypress', (event) => {
const info = keyCodeInfo(event.code);
console.log(`Key pressed: code=${event.code}, name="${info.name}", char="${info.char}"`);
});
FAQs
A simple utility for getting key info for a given linux key code
We found that linux-key-info 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.