Gathering detailed insights and metrics for event-emitter-grouped
Gathering detailed insights and metrics for event-emitter-grouped
Gathering detailed insights and metrics for event-emitter-grouped
Gathering detailed insights and metrics for event-emitter-grouped
Emit events in serial or parallel with support for synchronous and asynchronous listeners
npm install event-emitter-grouped
Typescript
Module System
Min. Node Version
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
8 Stars
274 Commits
1 Watchers
2 Branches
3 Contributors
Updated on Jan 02, 2025
Latest Version
6.7.0
Package Id
event-emitter-grouped@6.7.0
Unpacked Size
50.02 kB
Size
13.14 kB
File Count
10
NPM Version
10.2.3
Node Version
20.10.0
Published on
Jan 02, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Emit events in serial or parallel with support for synchronous and asynchronous listeners
1// Importer 2var EventEmitterGrouped = require('event-emitter-grouped') 3 4// Instantiate a new instance 5var emitter = new EventEmitterGrouped() 6 7// Bind an asynchronous event 8emitter.on('hello', function (next) { 9 console.log('\tasync started') 10 setTimeout(function () { 11 console.log('\tasync finished') 12 next() 13 }, 1000) 14}) 15 16// Bind a synchronous event 17emitter.on('hello', function () { 18 console.log('\tsync started and finished') 19}) 20 21// Bind a prioritized event 22function vipListener() { 23 console.log('\tvip started and finished') 24} 25vipListener.priority = 1 26emitter.on('hello', vipListener) 27 28// Emit the events in serial (one after the other in a waiting fashion) 29console.log('hello in serial started') 30emitter.emitSerial('hello', function (err) { 31 console.log('hello in serial finished') 32 33 // Emit the events in parallel (all at once) 34 console.log('hello in parallel started') 35 emitter.emitParallel('hello', function (err) { 36 console.log('hello in parallel finished') 37 }) 38}) 39 40/* Outputs: 41hello in serial started 42 vip started and finished 43 async started 44 async finished 45 sync started and finished 46hello in serial finished 47hello in parallel started 48 vip started and finished 49 async started 50 sync started and finished 51 async finished 52hello in parallel finished 53*/
npm install --save event-emitter-grouped
import * as pkg from ('event-emitter-grouped')
const pkg = require('event-emitter-grouped')
1<script type="module"> 2 import * as pkg from '//dev.jspm.io/event-emitter-grouped@6.7.0' 3</script>
This package is published with the following editions:
event-emitter-grouped
aliases event-emitter-grouped/index.cjs
which uses the Editions Autoloader to automatically select the correct edition for the consumer's environmentevent-emitter-grouped/source/index.js
is ESNext source code for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulesevent-emitter-grouped/edition-browsers/index.js
is ESNext compiled for web browsers with Require for modulesevent-emitter-grouped/edition-node-4/index.js
is ESNext compiled for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modulesThis project provides its type information via inline JSDoc Comments. To make use of this in TypeScript, set your maxNodeModuleJsDepth
compiler option to 5
or thereabouts. You can accomplish this via your tsconfig.json
file like so:
1{ 2 "compilerOptions": { 3 "maxNodeModuleJsDepth": 5 4 } 5}
Discover the release history by heading on over to the HISTORY.md
file.
Discover how to contribute via the CONTRIBUTING.md
file.
Unless stated otherwise all works are:
and licensed under:
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
license file detected
Details
Reason
6 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More