New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@diffidentpackages/html2canvas-pro

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@diffidentpackages/html2canvas-pro

Screenshots with JavaScript. Next generation!

latest
Source
npmnpm
Version
1.5.11
Version published
Maintainers
1
Created
Source

html2canvas-pro

Next generation JavaScript screenshots tool.

build status npm version npm downloads

Getting Started | DeepWiki


Why html2canvas-pro?

html2canvas-pro is a fork of niklasvh/html2canvas that includes various fixes and new features. It offers several advantages over the original html2canvas, such as:

  • support color function color() (including relative colors)
  • support color function lab()
  • support color function lch()
  • support color function oklab()
  • support color function oklch()
  • Support object-fit of <img/>
  • Fixed some issues

If you found this helpful, don't forget to leave a star 🌟.

Installation

npm install html2canvas-pro
pnpm / yarn add html2canvas-pro

Usage

import html2canvas from 'html2canvas-pro';

To render an element with html2canvas-pro with some (optional) options, simply call html2canvas(element, options);

html2canvas(document.body).then(function(canvas) {
    document.body.appendChild(canvas);
});

Contribution

If you want to add some features, feel free to submit PR.

If you want to become a maintainer on it, please contact me.

License

MIT.

Keywords

html2canvas

FAQs

Package last updated on 17 Sep 2025

Did you know?

Socket

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.

Install

Related posts