New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@protobufjs/eventemitter

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@protobufjs/eventemitter

A minimal event emitter.

1.1.0
latest
Source
npm
Version published
Weekly downloads
16M
1.53%
Maintainers
2
Weekly downloads
 
Created
Source

@protobufjs/eventemitter

npm

A minimal event emitter.

API

  • new EventEmitter()
    Constructs a new event emitter instance.

  • EventEmitter#on(evt: string, fn: function, [ctx: Object]): EventEmitter
    Registers an event listener.

  • EventEmitter#off([evt: string], [fn: function]): EventEmitter
    Removes an event listener or any matching listeners if arguments are omitted.

  • EventEmitter#emit(evt: string, ...args: *): EventEmitter
    Emits an event by calling its listeners with the specified arguments.

License: BSD 3-Clause License

FAQs

Package last updated on 25 Jan 2017

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