@vimpak/typst
v0.3.0
Published
WASM bindings for [Typst](https://typst.app/), a modern typesetting system.
Downloads
42
Readme
@vimpak/typst
WASM bindings for Typst, a modern typesetting system.
Features
- Compile: Convert Typst markup to SVG output
- Format: Format Typst source code using typstyle
Usage
JavaScript/TypeScript
import init, { compile, format } from "./pkg/vpk_typst.js";
await init();
const source = `
= Hello World
This is a test document.
`;
const svg = compile(source);
console.log(svg);
const formatted = format(source);
console.log(formatted);Building
wasm-pack build --scope vimpak --target webLicense
MIT or Apache-2.0
