really-small-events
Advanced tools
Weekly downloads
Readme
A Tiny Typescript Event Library
Just over 300 bytes gzipped. :)
npm i really-small-events --save
Typescript / Babel
import { RSE } from "really-small-events";
NodeJS
const RSE = require("really-small-events").RSE;
Listen for events
const runThisFunc = (as, many, args, as, I, want) => {
console.log("Hello, world!");
};
// Listen for Event
RSE.on("someEvent", runThisFunc)
// Trigger event anywhere in your app
RSE.trigger("someEvent", the, args, to, pass, to, the, event);
// Remove listener
RSE.off("someEvent", runThisFunc);
FAQs
A Tiny Typescript Event Library
The npm package really-small-events receives a total of 771 weekly downloads. As such, really-small-events popularity was classified as not popular.
We found that really-small-events demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.