re-emitter

WebJar for re-emitter

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

re-emitter
Последняя версия

Последняя версия

1.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

re-emitter
WebJar for re-emitter
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/feross/re-emitter

Скачать re-emitter

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/re-emitter/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>re-emitter</artifactId>
    <version>1.1.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/re-emitter/
implementation 'org.webjars.npm:re-emitter:1.1.3'
// https://jarcasting.com/artifacts/org.webjars.npm/re-emitter/
implementation ("org.webjars.npm:re-emitter:1.1.3")
'org.webjars.npm:re-emitter:jar:1.1.3'
<dependency org="org.webjars.npm" name="re-emitter" rev="1.1.3">
  <artifact name="re-emitter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='re-emitter', version='1.1.3')
)
libraryDependencies += "org.webjars.npm" % "re-emitter" % "1.1.3"
[org.webjars.npm/re-emitter "1.1.3"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

re-emitter travis npm downloads javascript style guide

Re emit events from another emitter

reemit

Sauce Test Status

Works in node and the browser with browserify.

js-standard-style

install

npm install re-emitter

usage

var reemit = require('re-emitter')

var emitter = new EventEmitter()
var other = new EventEmitter()

reemit(emitter, other, ['foo', 'bar'])

other.on('foo', function () {
  // foo will fire on other emitter!
})

emitter.emit('foo')

other.on('baz', function () {
  // baz will not fire on other emitter
})

emitter.emit('baz')

canceling re-emitting

reemit returns a function, which when called, cancels all re-emitting by removing the event listeners which it added.

contributors

  • Raynos
  • Feross

license

MIT. Copyright (c) Raynos.

Версии библиотеки

Версия
1.1.3