Socket
Socket
Sign inDemoInstall

puppeteer-render-text

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puppeteer-render-text - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

8

index.js

@@ -38,2 +38,3 @@ import fs from 'node:fs'

* @param {boolean} [opts.loadGoogleFont=false] - Whether or not to load and wait for `opts.style.fontFamily` as one or more google fonts
* @param {boolean} [opts.verbose=false] - Optional whether to log browser console messages
* @param {object} [opts.style={}] - JS [CSS styles](https://www.w3schools.com/jsref/dom_obj_style.asp) to apply to the text's container div

@@ -55,2 +56,3 @@ * @param {object} [opts.inject={}] - Optionally injects arbitrary string content into the head, style, or body elements.

loadGoogleFont = false,
verbose = false,
style = {},

@@ -157,4 +159,6 @@ inject = {}

page.on('console', console.log)
page.on('error', console.error)
if (verbose) {
page.on('console', console.log)
page.on('error', console.error)
}

@@ -161,0 +165,0 @@ await page.setViewport({

{
"name": "puppeteer-render-text",
"version": "2.1.2",
"version": "2.1.3",
"description": "Robust text renderer using headless chrome.",

@@ -5,0 +5,0 @@ "repository": "transitive-bullshit/puppeteer-render-text",

Sorry, the diff of this file is not supported yet

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