New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-image-from-html

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-image-from-html - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

4

package.json
{
"name": "node-image-from-html",
"version": "1.0.1",
"main": "index.js",
"version": "1.0.2",
"main": "src/index.js",
"author": "A Furry Account - Furry",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -23,3 +23,3 @@ # node-image-from-html

// Regardless of the position or the padding around the element, the screenshot will always be of the div in question. In this case, "#entry".
let base64 = await Handler.render(`<div id="entry" style="width:100px;height:100px;padding:300px;background-color:blue"></div>`, "#entry")
let base64 = await Handler.renderID(`<div id="entry" style="width:100px;height:100px;padding:300px;background-color:blue"></div>`, "entry")

@@ -26,0 +26,0 @@ fs.writeFileSync("myImage.png", base64, {encoding: "base64"})

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc