UNPKG

x-satori

Version:

use Vue or Astro file to generate SVG image using Satori

20 lines (17 loc) 319 B
// src/core.ts import satori from "satori"; import { html } from "satori-html"; async function genSatoriSVG(opts, renderedHtmlStr) { return await satori( html(renderedHtmlStr), opts ); } // src/index.ts function defineSatoriConfig(opts) { return opts; } export { genSatoriSVG, defineSatoriConfig };