Gathering detailed insights and metrics for @happy-dom/global-registrator
Gathering detailed insights and metrics for @happy-dom/global-registrator
Gathering detailed insights and metrics for @happy-dom/global-registrator
Gathering detailed insights and metrics for @happy-dom/global-registrator
npm install @happy-dom/global-registrator
Typescript
Module System
Min. Node Version
Node Version
NPM Version
84.4
Supply Chain
80.6
Quality
95.3
Maintenance
100
Vulnerability
100
License
TypeScript (99.36%)
JavaScript (0.63%)
HTML (0.01%)
Total Downloads
1,556,426
Last Day
8,788
Last Week
37,712
Last Month
148,200
Last Year
1,342,100
3,573 Stars
2,141 Commits
215 Forks
15 Watching
7 Branches
127 Contributors
Minified
Minified + Gzipped
Latest Version
16.8.1
Package Id
@happy-dom/global-registrator@16.8.1
Unpacked Size
26.24 kB
Size
5.74 kB
File Count
24
NPM Version
10.9.2
Node Version
22.13.1
Publised On
31 Jan 2025
Cumulative downloads
Total Downloads
Last day
9.2%
8,788
Compared to previous day
Last week
-4.9%
37,712
Compared to previous week
Last month
20.9%
148,200
Compared to previous month
Last year
627.1%
1,342,100
Compared to previous year
1
This package makes it possible to register Happy DOM in the global scope, e.g. for testing purposes.
1npm install @happy-dom/global-registrator --save-dev
1import { GlobalRegistrator } from '@happy-dom/global-registrator'; 2 3GlobalRegistrator.register({ url: 'http://localhost:3000', width: 1920, height: 1080 }); 4 5document.body.innerHTML = `<button>My button</button>`; 6 7const button = document.querySelector('button'); 8 9// Outputs: "My button" 10console.log(button.innerText);
1import { GlobalRegistrator } from '@happy-dom/global-registrator'; 2 3GlobalRegistrator.register(); 4 5await GlobalRegistrator.unregister(); 6 7// Outputs: "undefined" 8console.log(global.document);
Documentation | Getting Started | Setup as Test Environment | GitHub
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 7
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
7 existing vulnerabilities detected
Details
Reason
Found 8/30 approved changesets -- score normalized to 2
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Score
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