listenercount

WebJar for listenercount

Лицензия

Лицензия

ISC
Группа

Группа

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

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

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

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

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

listenercount
WebJar for listenercount
Ссылка на сайт

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

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

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

https://github.com/junosuarez/node-listenercount

Скачать listenercount

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

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

Зависимости

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

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

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

listenercount

backwards compatible version of builtin events.listenercount

js standard style

build status

A polyfill of Node.js 0.12+'s events.listenerCount function for Node.js 0.10. Uses the builtin if present, otherwise uses polyfill implementation.

usage

var listenerCount = require('listenercount')
var EventEmitter = require('events').EventEmitter

var ee = new EventEmitter()
ee.on('event', function () {})
listenerCount(ee, 'event') // => 1
listenerCount(ee, 'foo') // => 0

api

listenerCount(ee : EventEmitter, eventName : String) => Number

Returns the number of listeners for a given eventName on an EventEmitter.

installation

$ npm install listenercount

running the tests

From package root:

$ npm install
$ npm test

contributors

license

ISC. (c) MMXVI jden jason@denizac.org. See LICENSE.md

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

Версия
1.0.1