JSPM

easyhtml2pdf

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 6
    • Score
      100M100P100Q28997F
    • License ISC

    High-level HTML → PDF converter using easyhtml2pdf with full options

    Package Exports

    • easyhtml2pdf
    • easyhtml2pdf/index.js

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (easyhtml2pdf) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    easyhtml2pdf

    High-level HTML → PDF converter (string, file, or URL).
    Uses Chromium via Puppeteer.

    Install

    npm install easyhtml2pdf

    API Usage

    const { convertToPdf } = require("easyhtml2pdf");
    
    await convertToPdf({
      html: "<h1>Hello</h1>",
      output: "file.pdf"
    });