'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
.