Installations
npm install strict-event-emitter-once
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.18.3
NPM Version
6.14.8
Score
67.3
Supply Chain
74.8
Quality
74.9
Maintenance
100
Vulnerability
100
License
Contributors
Unable to fetch Contributors
Languages
TypeScript (94.5%)
JavaScript (5.5%)
Developer
zone117x
Download Statistics
Total Downloads
507
Last Day
1
Last Week
5
Last Month
12
Last Year
71
GitHub Statistics
6 Commits
1 Forks
2 Watching
3 Branches
2 Contributors
Bundle Size
364.00 B
Minified
257.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
strict-event-emitter-once@1.0.0
Unpacked Size
8.04 kB
Size
3.08 kB
File Count
8
NPM Version
6.14.8
Node Version
12.18.3
Total Downloads
Cumulative downloads
Total Downloads
507
Last day
0%
1
Compared to previous day
Last week
150%
5
Compared to previous week
Last month
33.3%
12
Compared to previous month
Last year
-13.4%
71
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
strict-event-emitter-once
A typed implementation of Node.js events.once(emitter, name)
for use with strict-event-emitter-types
.
Creates a Promise that is fulfilled when the EventEmitter emits the given event.
Example usage
1import { once } from 'strict-event-emitter-once'; 2 3// setup typed event emitter 4import { StrictEventEmitter } from 'strict-event-emitter-types'; 5import { EventEmitter } from 'events'; 6 7// define your events 8interface Events { 9 request: (request: Request, response: Response) => void; 10 done: void; 11} 12 13// create strict event emitter types 14const ee: StrictEventEmitter<EventEmitter, Events> = new EventEmitter; 15 16// await for an event 17const [request, response] = await once(ee, 'request'); 18 19// await for an event that matches criteria 20const [request, response] = await once(ee, 'request', (req, res) => { 21 return req.url === '/'; 22}); 23
LICENSE MIT
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/actions.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/actions.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/actions.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/zone117x/strict-event-emitter-once/actions.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/actions.yml:35
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 2 third-party GitHubAction dependencies pinned
- Info: 1 out of 2 npmCommand dependencies pinned
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/actions.yml:1
- Info: no jobLevel write permissions found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 4 are checked with a SAST tool
Reason
26 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
Score
2.6
/10
Last Scanned on 2025-01-27
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