satori-multi
TypeScript icon, indicating that this package has built-in type declarations

0.16.1 • Public • Published

Satori Compat

npm version

A simple re-compiled version of the satori library for use in CommonJS or ESM environments.

Installation

yarn add satori-multi

Usage

Use satori-multi just like you would use satori. Here's a basic example:

import satori from "satori-multi"

const svg = await satori(<div style={{ color: "black" }}>hello, world</div>, {
  width: 600,
  height: 400,
  fonts: [
    {
      name: "Roboto",
      data: robotoArrayBuffer,
      weight: 400,
      style: "normal",
    },
  ],
})

Readme

Keywords

none

Package Sidebar

Install

npm i satori-multi

Weekly Downloads

79

Version

0.16.1

License

ISC

Unpacked Size

4.64 MB

Total Files

8

Last publish

Collaborators

  • ruban-gt