Installation
Node.js
npm install flak --save
Example
const Flak = ;const emitter = ; // Adds listener for the eventemitter; // Adds a one time listener function for the event emitter; // Adds listener for the event that can be call just 4 timeemitter; // Adds the listener function to the beginning of the listeners array for the event named myEvent1emitter; // Catch all eventsemitter; // Fire eventemitter; // Fire async methodemitter; // Remove all listeners for myEvent1emitter; // Returning data using "fireTheFirst"emitter;console //=> true; // Suspend eventemitter;emitter; // will not be fired! // Resume eventemitter;
API Documentation
Browser
Local
CDN unpkg
CDN jsDeliver
Changelog
You can view the changelog here
License
Flak is open-sourced software licensed under the MIT license