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
npm install @curefatih-jf/global-registrator
Typescript
Module System
Node Version
NPM Version
69.7
Supply Chain
98.8
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.36%)
JavaScript (0.63%)
HTML (0.01%)
Total Downloads
824
Last Day
2
Last Week
11
Last Month
24
Last Year
160
3,579 Stars
2,141 Commits
216 Forks
15 Watching
7 Branches
127 Contributors
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
100%
2
Compared to previous day
Last week
57.1%
11
Compared to previous week
Last month
140%
24
Compared to previous month
Last year
-34.2%
160
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
30 commit(s) and 10 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
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 6
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 9/30 approved changesets -- score normalized to 3
Reason
8 existing vulnerabilities detected
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-02-03
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