A fast and small port of Pikchr to WASM.
npm install --save pikchr-wasm
import pikchr from 'pikchr-wasm'; // Default entrypoint, optimized for speed, ~76kb min+gzip
// import pikchr from 'pikchr-wasm/speed'; // Default entrypoint, optimized for speed, ~76kb min+gzip
// import pikchr from 'pikchr-wasm/size'; // Alternative entrypoint, optimized for bundle size, ~65kb min+gzip
await pikchr.loadWASM (); // First of all you need to load the WASM instance and wait for it
const markup = 'box'; // The markup to render
const svg = pikchr.render ( markup ); // You get an SVG as a string back
- Library: MIT © Fabio Spampinato
- Pikchr: BSD © Richard Hipp