A simple re-compiled version of the satori library for use in CommonJS or ESM environments.
yarn add satori-multi
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",
},
],
})