0.1.13 • Published 8 months ago
@wasm-fmt/web_fmt v0.1.13
Install
npm install @wasm-fmt/web_fmt
npx jsr add @fmt/web-fmt
Usage
import init, { format } from "@wasm-fmt/web_fmt";
await init();
const input = `function foo() {console.log("Hello, world!")}`;
const formatted = format(input, "index.js");
console.log(formatted);
For Vite users:
import init, { format } from "@wasm-fmt/web_fmt/vite";
// ...