eventemitter-decorator
0.1.2 • Public • Published EventEmitterDecorator
USAGE
import EventEmitter from 'eventemitter-decorator';
@EventEmitter
class Foo {}
const foo = new Foo();
foo.on('hello', (name) => console.log(`hello, ${name}!!`));
foo.emit('hello', 'world');
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 0.1.2
1
Version History
Package Sidebar
Install
npm i eventemitter-decorator
Weekly Downloads