New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@paulavery/events

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulavery/events

EventEmitter with Promise support

latest
Source
npmnpm
Version
2.0.2
Version published
Maintainers
1
Created
Source

@paulavery/events - EventEmitter with Promise support

Yes, this is yet another EventEmitter. It can deal with scopes as well as promises, but it is mostly used by me as a testbed for my buildsystem and for my private projects.

Full documentation can be found at here. And here is a short example:

import EventEmitter from '@paulavery/events';

let emitter = new EventEmitter();
let scope = emitter.child('scope');

emitter.on('scope:event', message => console.log('1. ' + message));
emitter.on('scope:*', (path, message) => console.log('2. ' + message));
scope.on('event', message => console.log('3. ' + message));

emitter.emit('scope:event', 'MESSAGE!').then(() => console.log('Done'));

FAQs

Package last updated on 27 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts