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
A JavaScript implementation of a web browser without its graphical user interface
npm install @happy-dom/global-registrator
Typescript
Module System
Min. Node Version
Node Version
NPM Version
97.4
Supply Chain
80.6
Quality
90.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.37%)
JavaScript (0.62%)
HTML (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3,888 Stars
2,203 Commits
241 Forks
14 Watchers
10 Branches
141 Contributors
Updated on Jul 12, 2025
Latest Version
18.0.1
Package Id
@happy-dom/global-registrator@18.0.1
Unpacked Size
26.01 kB
Size
5.74 kB
File Count
24
NPM Version
10.9.2
Node Version
22.16.0
Published on
Jun 10, 2025
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
2
4
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
28 commit(s) and 9 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
no binaries found in the repo
Reason
2 existing vulnerabilities detected
Details
Reason
Found 16/29 approved changesets -- score normalized to 5
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
SAST tool is not run on all commits -- score normalized to 4
Details
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-07-07
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