Gathering detailed insights and metrics for @types/dom4
Gathering detailed insights and metrics for @types/dom4
Gathering detailed insights and metrics for @types/dom4
Gathering detailed insights and metrics for @types/dom4
The repository for high quality TypeScript type definitions.
npm install @types/dom4
Typescript
Module System
100
Supply Chain
93.8
Quality
75.9
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
50,033 Stars
89,737 Commits
30,434 Forks
640 Watchers
6 Branches
9,957 Contributors
Updated on Jul 14, 2025
Latest Version
2.0.4
Package Id
@types/dom4@2.0.4
Unpacked Size
5.95 kB
Size
1.97 kB
File Count
5
Published on
Nov 07, 2023
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
npm install --save @types/dom4
This package contains type definitions for dom4 (https://github.com/WebReflection/dom4).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dom4.
1/** 2 * https://dom.spec.whatwg.org/#parentnode 3 */ 4interface ParentNode { 5 /** 6 * Returns the child elements. 7 */ 8 readonly children: HTMLCollection; 9 10 /** 11 * Inserts `nodes` after the last child of this node, while replacing strings with equivalent `Text` nodes. 12 */ 13 append(...nodes: Array<Node | string>): void; 14 15 /** 16 * Inserts `nodes` before the first child of this node, while replacing strings with equivalent `Text` nodes. 17 */ 18 prepend(...nodes: Array<Node | string>): void; 19} 20 21/** 22 * https://dom.spec.whatwg.org/#childnode 23 */ 24interface ChildNode { 25 /** 26 * Inserts `nodes` just after this node, while replacing strings with equivalent `Text` nodes. 27 */ 28 after(...nodes: Array<Node | string>): void; 29 30 /** 31 * Inserts `nodes` just before this node, while replacing strings with equivalent `Text` nodes. 32 */ 33 before(...nodes: Array<Node | string>): void; 34 35 /** 36 * Replaces this node with `nodes`, while replacing strings in nodes with equivalent Text nodes. 37 */ 38 replaceWith(...nodes: Array<Node | string>): void; 39 40 /** 41 * Removes this node. 42 */ 43 remove(): void; 44} 45 46interface Element extends ParentNode { 47 /** 48 * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. 49 */ 50 closest(selectors: string): Element | null; 51 52 /** 53 * Returns true if matching selectors against element’s root yields element, and false otherwise. 54 */ 55 matches(selectors: string): boolean; 56} 57 58interface Elements extends ParentNode, Array<Element> { 59} 60 61interface Document extends ParentNode { 62} 63 64interface DocumentFragment extends ParentNode { 65} 66
These definitions were written by Adi Dahiya, and Gilad Gray.
No vulnerabilities found.
Reason
30 commit(s) and 1 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
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
Found 27/30 approved changesets -- score normalized to 9
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
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