You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket
c

ckafwilo

npm

Packages

Comaintainers

5 packages

ck-screen-res

Responsive main page cover

html-to-document

A modular, open source library for converting HTML content into professional document formats. Initially focused on HTML-to-DOCX conversion, with planned support for PDF and XLSX. Built with TypeScript, it features a core HTML parsing engine and separate

html-to-document-adapter-docx

DOCX adapter for html-to-document-core — converts a DocumentElement tree into a .docx Buffer using the docx library.

html-to-document-adapter-pdf

PDF adapter for html-to-document-core — converts a DocumentElement tree into .pdf using the html2pdf.js library.

html-to-document-core

Core engine that parses HTML into an intermediate DocumentElement tree and exposes a plugin registry so external adapters can convert that tree into DOCX, PDF, XLSX, Markdown and more.