Cutie extension for Events module in Node.
Last updated a year ago by guseyn .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cuties/event 
SYNC missed versions from official npm registry.


NPM Version Build Status codecov

Cutie extension for event module in Node. It's based on the Async Tree Pattern.


You can find examples of using this library in the test directory.


npm install @cuties/event

Run test

npm test

Run build

npm run build


const {
  // Needed async objects here from the table below
} = require('@cuties/event');

For more information about parameters in the async objects visit docs of Node for event module.

Async Object Async/sync call Parameters(default value/description) Representation result
EmittedEmitter emitter.emit emitter, eventName, ...args emitter
EmitterWithAdditionalListener emitter.addListener emitter, eventName, listener emitter
EmitterWithAdditionalOneTimeListener emitter.once emitter, eventName, listener emitter
EmitterWithAdditionalPrependedListener emitter.prependListener emitter, eventName, listener emitter
EmitterWithAdditionalPrependedOneTimeListener emitter.prependOnceListener emitter, eventName, listener emitter
EmitterWithMaxListeners emitter.setMaxListeners emitter, n emitter
EmitterWithNewListenerEvent emitter.once('newListener', listener) emitter, listener(Event with definedBody(event, listener)) emitter
EmitterWithRemoveEvent emitter.once('removeListener', listener) emitter, listener(Event with definedBody(event, listener)) emitter
EmitterWithRemovedListener emitter.removeListener emitter, eventName, listener emitter
EmitterWithoutAnyListeners emitter.removeAllListeners emitter, eventName emitter
EventNames emitter.eventNames emitter (string or symbol)[]
ListenerCount emitter.listenerCount emitter, eventName number
Listeners emitter.listeners emitter, eventName function[]
MaxListeners emitter.getMaxListeners emitter number

Current Tags

  • 1.1.2                                ...           latest (a year ago)

8 Versions

  • 1.1.2                                ...           a year ago
  • 1.1.1                                ...           a year ago
  • 1.1.0                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (6)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |