puppeteer-render-text
Advanced tools
Comparing version 0.2.0 to 1.0.0
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
17850
1
105