
Security News
/Research
Fake Corepack Site Distributes Infostealer and Proxyware to Developers
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.
react-focus-onkeydown
Advanced tools
React hook for getting focus of a component when a key is pressed anywhere in the page
React hook for getting focus of a component when a key is pressed anywhere in the page
You can see the simplest demo here: Live demo
$ npm install --save react-focus-onkeydown
Run examples:
cd examples
npm install
npm start
import { useRef } from 'react';
import useFocusOnKeyDown from 'react-focus-onkeydown';
const () => {
const ref = useRef(null);
useFocusOnKeyDown(ref);
// Typing any key will trigger a focus on the input below
return <input ref={ref} />;
}
Type: ref, required
ref to the target element
Type: boolean, default: true
Controls whether or not hook is active (i.e., whether or not a keydown will cause the element to focus)
See the LICENSE file for license rights and limitations (MIT).
FAQs
React hook for getting focus of a component when a key is pressed anywhere in the page
The npm package react-focus-onkeydown receives a total of 28 weekly downloads. As such, react-focus-onkeydown popularity was classified as not popular.
We found that react-focus-onkeydown demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.

Security News
/Research
A fake corepack.org site is impersonating the Node.js tool and delivers an infostealer and proxyware to developers who download it.

Research
/Security News
A large-scale campaign abused GitHub Actions in compromised repositories to exploit CVE-2026-41940 in cPanel and WHM and steal server credentials.

Security News
Five frontier LLMs generated the same nonexistent package names, leaving 53 available for potential slopsquatting across PyPI and npm.