Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

emitter

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emitter

Faster events controller for class and object

  • 0.0.5
  • latest
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 16 Oct 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc