UNPKG

@cf-wasm/og

Version:

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

20 lines (19 loc) 786 B
import { cache } from "./core/cache.js"; import { FetchError } from "./core/errors.js"; import { CustomFont, GoogleFont, defaultFont, googleFonts, loadGoogleFont } from "./core/font.js"; import { modules } from "./core/modules.js"; import { render } from "./core/render.js"; import { ImageResponse } from "./core/response.js"; import "./core/index.js"; import { Resvg } from "@cf-wasm/resvg/legacy/others"; import { satori } from "@cf-wasm/satori/others"; //#region src/others.ts modules.set({ Resvg }, { satori }); defaultFont.set(new GoogleFont("Noto Sans", { name: "sans serif", weight: 400, style: "normal" })); //#endregion export { CustomFont, FetchError, GoogleFont, ImageResponse, cache, defaultFont, googleFonts, loadGoogleFont, render }; //# sourceMappingURL=others.js.map