@wasm-fmt/web_fmt
v0.1.13
Published
a formatter for web development powered by WASM
Downloads
224
Maintainers
Readme
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";
// ...