
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@koukitsuko/html2pdf.js
Advanced tools
A fork of html2pdf.js with modern build tooling and improved HTML rendering.
This fork makes the following improvements to the original html2pdf.js:
html2canvas
with html2canvas-pro
for improved HTML rendering# Using npm
npm install @koukitsuko/html2pdf.js
# Using pnpm
pnpm add @koukitsuko/html2pdf.js
import html2pdf from '@koukitsuko/html2pdf.js';
// Generate PDF from element
const element = document.getElementById('element-to-print');
html2pdf().from(element).save('my-pdf.pdf');
const html2pdf = require('@koukitsuko/html2pdf.js');
// Generate PDF from element
const element = document.getElementById('element-to-print');
html2pdf().from(element).save('my-pdf.pdf');
For detailed API documentation, options, and advanced usage, please refer to the original html2pdf.js documentation.
# Install dependencies
pnpm install
# Build development version
pnpm run dev
# Build production version
pnpm run build
pnpm install
src
directorypnpm run build
This project is a fork of html2pdf.js by Erik Koopmans.
Copyright (c) 2017-2019 Erik Koopmans <http://www.erik-koopmans.com/>
FAQs
Client-side HTML-to-PDF rendering using pure JS
The npm package @koukitsuko/html2pdf.js receives a total of 5 weekly downloads. As such, @koukitsuko/html2pdf.js popularity was classified as not popular.
We found that @koukitsuko/html2pdf.js demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.