@eventus/eventus-js
v0.0.1
Published
Eventus javascript API
Downloads
28
Maintainers
Readme
@eventus/eventus-js
eventus-js is a javascript library used to trigger events for Eventus.
Installation
Install eventus-js using:
npm install @eventus/eventus-js
or
yarn add @eventus/eventus-js
Usage
import { useEventus } from "@eventus/eventus-js";
// initialise api
const eventus = useEventus({
client_id: "", // your client id
});
eventus.trigger("{EVENT_ID}", { message: "custom payload" });
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.