Potrace Porting in Web Assembly.
Add potrace-wasm dependency
npm install potrace-wasm
Call the helper methods
import { loadFromCanvas } from "potrace-wasm";
loadFromCanvas(canvas, config)
.then(svg => drawSVG(svg))
.catch(err => console.log(err));
Install emsdk
Build the wasm and js
npm run build
The GNU General Public License version 2 (GPLv2).