@egoist/html-to-image
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

@egoist/html-to-image

Generate image from HTML, using Puppeteer.

Install

yarn add @egoist/html-to-image

Usage

import { getImage, stopBrowser } from '@egoist/html-to-image'

const buffer = await getImage(`<strong>hello</strong>`)
await stopBrowser()

License

MIT © EGOIST

Readme

Keywords

none

Package Sidebar

Install

npm i @egoist/html-to-image

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • egoist