A high-performance SVG renderer and toolkit, powered by Rust based resvg.
Powered by @resvg/resvg-wasm.
Install the package by running the following command in terminal:
npm install @cf-wasm/resvg
- Cloudflare workers:
import * as resvg from "@cf-wasm/resvg";
- Next.js (Webpack):
import * as resvg from "@cf-wasm/resvg/next";
- CJS (file base):
import * as resvg from "@cf-wasm/resvg/node";
Read official documentation at @resvg/resvg-wasm.