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

make-og-image

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-og-image

Simple pluggable og:image generation using HTML.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

make-og-image

NPM version NPM Downloads GitHub stars

Quick full-featured og:image PNG generation using HTML.


Status:Pre-release
Please report any issues 🐛
Made possible by my Sponsor Program 💖
Follow me @harlan_zw 🐦 • Join Discord for help

Features

  • HTML to PNG generation
  • Supports Emojis out of the box with twemoji
  • Supports custom fonts
  • Automatic image size calculation
  • <style> block support

Docs

Visit the documentation site for guides and API references.

Install

npm i make-og-image

Quick Setup

Create the head client somewhere in your root application.

import { createPng } from 'make-og-image'

const png = await createPng(`<div>
    <h1>Hello World</h1>
    <p>This is a test</p>
</div>`)

Sponsors

License

MIT License © 2023-PRESENT Harlan Wilton

FAQs

Package last updated on 12 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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