1.1.3 • Published 6 months ago
@wfkit/emitter
Mitt wrapper
Install
pnpm i @wfkit/emitter
Usage
import Emitter from '@wfkit/emitter'
const emitter = new Emitter()
emitter.on('hello', (e) => {
console.log(`hello ${e}`) // hello world
})
emitter.emit('hello', world)
License
MIT © YDWF.COM