Huge News!Announcing our $40M Series B led by Abstract Ventures.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 - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -39,3 +39,3 @@ "use strict";

/**
* Removes an event listener.
* Removes an event listener or any matching listeners if arguments are omitted.
* @param {string} [evt] Event name. Removes all listeners if omitted.

@@ -42,0 +42,0 @@ * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted.

{
"name": "@protobufjs/eventemitter",
"description": "A minimal event emitter.",
"version": "1.0.0",
"author": "Daniel Wirtz <dcode@dcode.io>",
"version": "1.0.1",
"author": "Daniel Wirtz <dcode+protobufjs@dcode.io>",
"repository": {

@@ -7,0 +7,0 @@ "type": "git",

@protobufjs/eventemitter
========================
[![npm](https://img.shields.io/npm/v/@protobufjs/eventemitter.svg)](https://www.npmjs.com/package/@protobufjs/eventemitter)
A minimal event emitter.
API
---
* **new EventEmitter()**<br />
Constructs a new event emitter instance.
* **EventEmitter#on(evt: `string`, fn: `function`, [ctx: `Object`]): `EventEmitter`**<br />
Registers an event listener.
* **EventEmitter#off([evt: `string`], [fn: `function`]): `EventEmitter`**<br />
Removes an event listener or any matching listeners if arguments are omitted.
* **EventEmitter#emit(evt: `string`, ...args: `*`): `EventEmitter`**<br />
Emits an event by calling its listeners with the specified arguments.
**License:** [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
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