Gathering detailed insights and metrics for @types/html-docx-js
Gathering detailed insights and metrics for @types/html-docx-js
Gathering detailed insights and metrics for @types/html-docx-js
Gathering detailed insights and metrics for @types/html-docx-js
The repository for high quality TypeScript type definitions.
npm install @types/html-docx-js
Typescript
Module System
75.9
Supply Chain
83.2
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
340,563
Last Day
248
Last Week
3,824
Last Month
15,570
Last Year
133,823
NOASSERTION License
49,903 Stars
89,587 Commits
30,401 Forks
640 Watchers
7 Branches
9,958 Contributors
Updated on Jun 17, 2025
Latest Version
0.3.4
Package Id
@types/html-docx-js@0.3.4
Unpacked Size
5.92 kB
Size
2.12 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
Last Day
39.3%
248
Compared to previous day
Last Week
-10.9%
3,824
Compared to previous week
Last Month
4.8%
15,570
Compared to previous month
Last Year
46.6%
133,823
Compared to previous year
1
npm install --save @types/html-docx-js
This package contains type definitions for html-docx-js (https://github.com/evidenceprime/html-docx-js#readme).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-docx-js.
1/// <reference types="node" /> 2 3/** 4 * To generate DOCX, simply pass a HTML document (as string) to this method 5 * to receive `Blob` (or `Buffer`) containing the output file. 6 */ 7export function asBlob( 8 /** 9 * An HTML formatted string. It should be a complete, valid HTML 10 * (including DOCTYPE, `html` and `body` tags). 11 * This may be less convenient, but gives you possibility of including 12 * CSS rules in `style` tags. 13 */ 14 html: string, 15 /** Additional options for controlling page setup for the document. */ 16 options?: { 17 /** 18 * Page orientation. Must be `landscape` or `portrait` (default). 19 */ 20 orientation?: "landscape" | "portrait" | undefined; 21 /** 22 * A map of margin sizes (expressed in twentieths of point, see 23 * [WordprocessingML documentation](http://officeopenxml.com/WPsectionPgMar.php) 24 * for details). 25 */ 26 margins?: { 27 /** The top page margin (default: 1440, i.e. 2.54 cm). */ 28 top?: number | undefined; 29 /** The right page margin (default: 1440). */ 30 right?: number | undefined; 31 /** The bottom page margin (default: 1440). */ 32 bottom?: number | undefined; 33 /** The left page margin (default: 1440). */ 34 left?: number | undefined; 35 /** The margin for the header (default: 720). */ 36 header?: number | undefined; 37 /** The margin for the footer (default: 720). */ 38 footer?: number | undefined; 39 /** The margin for the gutter (default: 0). */ 40 gutter?: number | undefined; 41 } | undefined; 42 }, 43): Blob | Buffer; 44
These definitions were written by Jacob Fischer.
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 29/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-06-16
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