Sha256: 5dc8bef6d7641158ccd485fece7fcf46566fe95b42e40a48ded7ea43366f0968
Contents?: true
Size: 338 Bytes
Versions: 41
Compression:
Stored size: 338 Bytes
Contents
/*! * depd * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed */ 'use strict' /** * Module exports. * @public */ module.exports = eventListenerCount /** * Get the count of listeners on an event emitter of a specific type. */ function eventListenerCount (emitter, type) { return emitter.listeners(type).length }
Version data entries
41 entries across 36 versions & 13 rubygems