
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
@hydroperx/event
Advanced tools
Easily define event types for an EventTarget. Credits to this article.
The following program defines play and stop events.
import { TypedEventTarget } from "@hydroperx/event";
class MediaPlayer extends (EventTarget as TypedEventTarget<{
play: CustomEvent<MediaPlayerEvent>;
stop: CustomEvent<MediaPlayerEvent>;
}>) {}
Note that event types must implement the
Eventinterface, thus in the previous programCustomEventis used; if there was no data, it could have just beenEventitself.
FAQs
Statically typed event facilities.
The npm package @hydroperx/event receives a total of 14 weekly downloads. As such, @hydroperx/event popularity was classified as not popular.
We found that @hydroperx/event demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.