Gathering detailed insights and metrics for @curefatih-jf/global-registrator
Gathering detailed insights and metrics for @curefatih-jf/global-registrator
Gathering detailed insights and metrics for @curefatih-jf/global-registrator
Gathering detailed insights and metrics for @curefatih-jf/global-registrator
A JavaScript implementation of a web browser without its graphical user interface
npm install @curefatih-jf/global-registrator
Typescript
Module System
Node Version
NPM Version
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
0.1.3
Package Id
@curefatih-jf/global-registrator@0.1.3
Unpacked Size
11.25 kB
Size
4.60 kB
File Count
18
NPM Version
lerna/4.0.0/node@v16.13.0+x64 (darwin)
Node Version
16.13.0
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
Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.
The goal of Happy DOM is to emulate enough of a web browser to be useful for testing, scraping web sites and server-side rendering.
Happy DOM focuses heavily on performance and can be used as an alternative to JSDOM.
This package contains a utility that registers Happy DOM globally, which makes it possible to use Happy DOM for testing in a Node environment.
Custom Elements (Web Components)
Shadow Root (Shadow DOM)
Declarative Shadow DOM
Mutation Observer
Tree Walker
Fetch
And much more..
1npm install @happy-dom/global-registrator --save-dev
1import { GlobalRegistrator } from '@happy-dom/global-registrator'; 2 3GlobalRegistrator.register(); 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 5GlobalRegistrator.unregister(); 6 7// Outputs: "undefined" 8console.log(global.document)
Operation | JSDOM | Happy DOM |
---|---|---|
Import / Require | 333 ms | 45 ms |
Parse HTML | 256 ms | 26 ms |
Serialize HTML | 65 ms | 8 ms |
Render custom element | 214 ms | 19 ms |
querySelectorAll('tagname') | 4.9 ms | 0.7 ms |
querySelectorAll('.class') | 6.4 ms | 3.7 ms |
querySelectorAll('[attribute]') | 4.0 ms | 1.7 ms |
querySelectorAll('[class~="name"]') | 5.5 ms | 2.9 ms |
querySelectorAll(':nth-child(2n+1)') | 10.4 ms | 3.8 ms |
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