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 1.0.2 to 1.0.3

2

index.js

@@ -30,3 +30,3 @@ 'use strict'

* @param {string} opts.text - HTML content to render
* @param {string} opts.output - Path of image file to output result
* @param {string} opts.output - Path of image file to store result
* @param {number} [opts.width] - Optional max width for word-wrap

@@ -33,0 +33,0 @@ * @param {number} [opts.height] - Optional max height to clip overflow

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

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

@@ -11,2 +11,4 @@ # puppeteer-render-text

This module is also available as a [CLI](https://github.com/transitive-bullshit/puppeteer-render-text-cli).
## Why?

@@ -25,6 +27,7 @@

- optional word-wrap
- main context is just **html**
- main content is just **html**
- styling is done via [**css**](https://www.w3schools.com/jsref/dom_obj_style.asp)
- handles multiple fonts
- thoroughly tested
- includes a [CLI](https://github.com/transitive-bullshit/puppeteer-render-text-cli)

@@ -110,3 +113,5 @@ ## Install

- [puppeteer-render-text-cli](https://github.com/transitive-bullshit/puppeteer-render-text-cli) - CLI for this module.
- [puppeteer](https://github.com/GoogleChrome/puppeteer) - Headless Chrome Node API.
- [awesome-puppeteer](https://github.com/transitive-bullshit/awesome-puppeteer) - Curated list of awesome puppeteer resources.

@@ -113,0 +118,0 @@ ## License

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