opai

0.0.2 • Public • Published

a simple event dispatcher lib

usage

yarn add opai
 
import opai from "opai"
 
 
class Test {
    constructor(){
        this.opai = new opai(this)
    }
}
 
let test = new Test()
 
test.E.a && test.E.a.push(v => console.log(v))
 
test.E.a = 100
 
 
 
 

/opai/

    Package Sidebar

    Install

    npm i opai

    Weekly Downloads

    2

    Version

    0.0.2

    License

    none

    Last publish

    Collaborators

    • vaiii
    • koishi