Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Readme
💧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 26,210 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 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.