1.2.0 • Published 4 years ago
es-mitt v1.2.0
es-mitt
Fork of https://github.com/developit/mitt, but using the npm name: es-mitt
Why?
EventEmitter of nodejs is heavy, both in size and API, this lib want keep as light as possible.
Install
npm i -S es-mitt
Different from mitt
- use
typescript
instead offlow
, assrc/index.ts
main
file point tosrc/index.js
as node module- using
class
and keep otheres2015
features - add
removeListener
method to keep consistency with EventEmitter