This package has been deprecated

Author message:

test

yeventemitter
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

install


@npm: npm install YEventEmitter -S

@yarn: yarn add YEventEmitter

Quick


import YEventEmitter from 'YEventEmitter';

const yEventEmitter = new YEventEmitter();

yEventEmitter.on('start', (...args) => {
  console.log('start', ...args);
});

yEventEmitter.once('once', (...args) => {
  console.log('once', ...args);
});

yEventEmitter.emit('start', 'hello', 'world');
yEventEmitter.emit('once', 'hello', 'world');

yEventEmitter.off('start');

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i yeventemitter

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    19.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • liuyunjs