emitter

0.0.5 • Public • Published

emitter NPM version

Faster events controller for class and object

Installation

$ npm install emitter

Example

import { EventEmitter, Promise } from 'emitter'
 
// Extend a object
let obj = { /* ... */ }
EventEmitter.extend(obj)
 
// Create a new emitter
let emitter = new EventEmitter()
 
// Define a class extend from Promise or EventEmitter
class Machine extends Promise {
  // ...
}

API

  • emitter.Promise()
  • emitter.EventEmitter()

Contributing

  • Fork this Repo first
  • Clone your Repo
  • Install dependencies by $ npm install
  • Checkout a feature branch
  • Feel free to add your features
  • Make sure your features are fully tested
  • Publish your local branch, Open a pull request
  • Enjoy hacking <3

docor built upon love by docor v0.3.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    2,776
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    2,776
  • 0.0.4
    0
  • 0.0.3
    2
  • 0.0.1
    16
  • 0.0.2
    3,291

Package Sidebar

Install

npm i emitter

Weekly Downloads

6,085

Version

0.0.5

License

MIT

Last publish

Collaborators

  • pemrouz