1.1.2 • Published 9 years ago

event-accessor v1.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

event-accessor

NPM version build status Test coverage

Proxy event dispatchers to only expose default functionality.

Installation

$ npm i --save event-accessor

Overview

var proxy = require('event-accessor');
var Emitter = require('events').EventEmitter;

var emitter = new Emitter;

var proxyEmitter = proxy(emitter);

API

event-accessor()

Wrap an event emmitter inside a event-accessor function, allowing only built-in methods to be exposed. Exposes all emitter functions.

var proxy = require('event-accessor');
var Emitter = require('events').EventEmitter;

var emitter = new Emitter;

var proxyEmitter = proxy(emitter);

License

MIT © Yoshua Wuyts

1.1.2

9 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago