mutter

1.0.1 • Public • Published

mutter

Mutter is a super-simple event emitter.

Installation

$ npm install mutter --save

Example

var evt = require('mutter');
 
function foo(val) {
  // ...
}
 
evt.on('foo', foo);
 
evt.one('foo', 'bar'); // emit one
evt.emit('foo', 'baz'); // emit all
 
evt.off('foo', foo)

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i mutter

Weekly Downloads

33

Version

1.0.1

License

MIT

Last publish

Collaborators

  • darylginn