@wasm-fmt/web_fmt
v0.1.14
Published
a formatter for web development powered by WASM
Maintainers
Readme
Install
npm install @wasm-fmt/web_fmtnpx jsr add @fmt/web-fmtUsage
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";
// ...