@wfkit/emitter
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @wfkit/emitter

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

6.48 kB

Total Files

7

Last publish

Collaborators

  • ydwf52