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