Gathering detailed insights and metrics for @types/html-docx-js
Gathering detailed insights and metrics for @types/html-docx-js
npm install @types/html-docx-js
Typescript
Module System
74.3
Supply Chain
83.2
Quality
75.4
Maintenance
100
Vulnerability
100
License
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Total Downloads
281,067
Last Day
501
Last Week
2,255
Last Month
9,398
Last Year
109,093
49,096 Stars
88,626 Commits
30,292 Forks
640 Watching
5 Branches
9,977 Contributors
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
Publised On
07 Nov 2023
Cumulative downloads
Total Downloads
Last day
-18%
501
Compared to previous day
Last week
-19.9%
2,255
Compared to previous week
Last month
12%
9,398
Compared to previous month
Last year
36.5%
109,093
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 2 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
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-01-27
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