UNPKG

@cf-wasm/og

Version:

Generate Open Graph Images dynamically from HTML/CSS without a browser.

35 lines (34 loc) 702 B
// src/others/index.ts import * as resvg from "@cf-wasm/resvg/2.4.1/others"; import * as satori from "@cf-wasm/satori/others"; import { GoogleFont, defaultFont, modules } from "../core/index.js"; import { ImageResponse, CustomFont, GoogleFont as GoogleFont2, render, googleFonts, defaultFont as defaultFont2, loadGoogleFont, cache, FetchError } from "../core/index.js"; modules.set(resvg, satori); defaultFont.set( new GoogleFont("Noto Sans", { name: "sans serif", weight: 400, style: "normal" }) ); export { CustomFont, FetchError, GoogleFont2 as GoogleFont, ImageResponse, cache, defaultFont2 as defaultFont, googleFonts, loadGoogleFont, render };