Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

opai

vaiii70.0.2

a simple event dispatcher lib

readme

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