UNPKG

node-image-from-html

Version:

This single-dependency library provides a simple API to render HTML content using <a href="https://github.com/puppeteer/puppeteer">Puppeteer</a> (A headless chromium brower) into png and jpeg images, insuring security and efficiency in the process. Writte

11 lines (10 loc) 303 B
import { ScreenshotOptions } from "puppeteer"; export interface BrowserHandlerOptions { concurrency: number; timeout: number; disableJavaScript: boolean; disableNetwork: boolean; } export interface ExtendedScreenshotOptions extends ScreenshotOptions { selector?: string; }