Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 729 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 729 Bytes

SVGBob WASM

All previous SVGBob WASM builds were out of date.

This is a dead simple, minimal config, SVGBob wasm build.

Usage

import { getRenderer } from '@EmNudge/svgbob-wasm';

getRenderer().then(render => {
  const svgText = render('|hello|');
  document.body.innerHTML = svgText; // do something with SVG text
});

Build

Ensure you have wasm-pack and pnpm installed.

pnpm i
npm run build

Future Plans

Optimally all these packages would be retired in favor of an official build maintained by the current svgbob project owner.

The hope was to showcase a simple-enough port to lower the burden of setting up the build process.