Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 0.2.0 to 1.0.0

2

package.json
{
"name": "puppeteer-render-text",
"version": "0.2.0",
"version": "1.0.0",
"description": "Robust text renderer using headless chrome.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -35,3 +35,3 @@ # puppeteer-render-text

// render built-in font with no word-wrap
// render text with built-in font and no word-wrap
await renderText({

@@ -46,3 +46,3 @@ text: 'hello world',

// render custom google font with word-wrap at 400px
// render text with custom google font and word-wrap at 400px
await renderText({

@@ -59,2 +59,14 @@ text: 'headless chrome is awesome',

})
// render html with custom google font and custom word-wrap at 100px
await renderText({
text: 'headless <b>chrome</b> is <span style="color: red: font-style: italic;">awesome</span>',
output: 'out1.png',
loadGoogleFont: true,
width: 100,
style: {
fontFamily: 'Roboto',
overflowWrap: 'break-word'
}
})
```

@@ -61,0 +73,0 @@

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