Installations
npm install @types/html-docx-js
Developer Guide
Typescript
Yes
Module System
N/A
Score
74.3
Supply Chain
83.2
Quality
75.4
Maintenance
100
Vulnerability
100
License
Contributors
Languages
TypeScript (99.9%)
JavaScript (0.09%)
Shell (0.01%)
Developer
DefinitelyTyped
Download Statistics
Total Downloads
281,067
Last Day
501
Last Week
2,255
Last Month
9,398
Last Year
109,093
GitHub Statistics
49,096 Stars
88,626 Commits
30,292 Forks
640 Watching
5 Branches
9,977 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
281,067
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
Installation
npm install --save @types/html-docx-js
Summary
This package contains type definitions for html-docx-js (https://github.com/evidenceprime/html-docx-js#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/html-docx-js.
index.d.ts
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
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/node
Credits
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
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
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
- Info: project has a license file: LICENSE:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:5
- Warn: npmCommand not pinned by hash: types/lodash/scripts/generate-all.sh:12
- Info: 20 out of 20 GitHub-owned GitHubAction dependencies pinned
- Info: 8 out of 8 third-party GitHubAction dependencies pinned
- Info: 0 out of 2 npmCommand dependencies pinned
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/UpdateCodeowners.yml:19
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ghostbuster.yml:20
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/support-window.yml:22
- Info: topLevel 'contents' permission set to 'read': .github/workflows/CI.yml:16
- Info: topLevel 'contents' permission set to 'read': .github/workflows/UpdateCodeowners.yml:14
- Warn: no topLevel permission defined: .github/workflows/format-and-commit.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/ghostbuster.yml:15
- Info: topLevel 'contents' permission set to 'read': .github/workflows/lint-md.yml:7
- Warn: no topLevel permission defined: .github/workflows/pnpm-cache.yml:1
- Info: topLevel 'contents' permission set to 'read': .github/workflows/support-window.yml:17
- Warn: no topLevel permission defined: .github/workflows/watchdog-publisher.yml:1
- Warn: no topLevel permission defined: .github/workflows/watchdog-typescript-bot.yml:1
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 27 are checked with a SAST tool
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Score
7
/10
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