
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
html-to-word-convertor
Advanced tools
The HTML to Word Document Converter is a tool designed to convert HTML content into Microsoft Word (.docx) format. This documentation provides instructions on how to use the converter in various environments such as JavaScript, Node.js, or React.js.
<script type="module">
import {convertHtmlPageToWordJavascript} from 'https://cdn.jsdelivr.net/npm/html-to-word-convertor@3.0.7/javascript_index.min.js'
convertHtmlPageToWordJavascript(document.documentElement.innerHTML, 'test.docx')
</script>
npm install html-to-word-convertor
npm add fs
import { convertHtmlPageToWordNode } from 'html-to-word-convertor/convertHtmlPageToWordNode'
const asyncProcessForHtmlParseToDocx = async (htmlContent) => {
await convertHtmlPageToWordNode(htmlContent, "demo.docx")
}
const htmlContent = `<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<h1 style="color:red;">Hello World Node.js</h1>
</body>
</html>`
asyncProcessForHtmlParseToDocx(htmlContent)
npm install html-to-word-convertor
import { convertHtmlPageToWordJavascript } from 'html-to-word-convertor/convertHtmlPageToWordJavascript';
const asyncProcessForHtmlParseToDocx = async () => {
await convertHtmlPageToWordJavascript(document.documentElement.innerHTML, 'demo.docx');
}
convertHtmlPageToWord(htmlContent: string, env: string): Promise
This project is licensed under the MIT License.
For any issues or queries, please contact [rohitpawarmit@gmail.com].
FAQs
Html to word document
The npm package html-to-word-convertor receives a total of 7 weekly downloads. As such, html-to-word-convertor popularity was classified as not popular.
We found that html-to-word-convertor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.