
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
💧EventEmitter's typesafe replacement💧
'evt'
is intended to be a replacement for 'events'
.
It makes heavy use of typescript's type inference features to provide type safety while keeping things concise and elegant 🍸.
Suitable for any JS runtime env (deno, node, old browsers, react-native ...)
tsafe
, run-exclusive
and minimal-polyfills
are all from the same author as EVT).Can be imported in TypeScript projects using version TypeScript >= 3.8 (February 20th, 2020) and in any plain JS projects.
NOTE: There is very few breaking changes from v1 to v2. Check them out.
import { Evt } from "https://deno.land/x/evt/mod.ts";
$ npm install --save evt
import { Evt } from "evt";
There are a lot of things that can't easily be done with EventEmitter
:
Why would someone pick EVT over RxJS:
EVT is an attempt to address all these points while trying to remain as accessible as EventEmitter
.
FAQs
Type safe replacement for node's EventEmitter
The npm package evt receives a total of 41,737 weekly downloads. As such, evt popularity was classified as popular.
We found that evt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.