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
 
 
 
 

Readme

Keywords

none

Package Sidebar

Install

npm i opai

Weekly Downloads

1

Version

0.0.2

License

none

Last publish

Collaborators

  • vaiii
  • koishi