Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @cuties/event with all npm packages installed. Try it out:

var event = require("@cuties/event")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@cuties/event v1.1.2

Cutie extension for Events module in Node.


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 ObjectAsync/sync callParameters(default value/description)Representation result
EmittedEmitteremitter.emitemitter, eventName, ...argsemitter
EmitterWithAdditionalListeneremitter.addListeneremitter, eventName, listeneremitter
EmitterWithAdditionalOneTimeListeneremitter.onceemitter, eventName, listeneremitter
EmitterWithAdditionalPrependedListeneremitter.prependListeneremitter, eventName, listeneremitter
EmitterWithAdditionalPrependedOneTimeListeneremitter.prependOnceListeneremitter, eventName, listeneremitter
EmitterWithMaxListenersemitter.setMaxListenersemitter, nemitter
EmitterWithNewListenerEventemitter.once('newListener', listener)emitter, listener(Event with definedBody(event, listener))emitter
EmitterWithRemoveEventemitter.once('removeListener', listener)emitter, listener(Event with definedBody(event, listener))emitter
EmitterWithRemovedListeneremitter.removeListeneremitter, eventName, listeneremitter
EmitterWithoutAnyListenersemitter.removeAllListenersemitter, eventNameemitter
EventNamesemitter.eventNamesemitter(string or symbol)[]
ListenerCountemitter.listenerCountemitter, eventNamenumber
Listenersemitter.listenersemitter, eventNamefunction[]
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free