@wasm-fmt/rome_fmt
v0.0.2
Published
JavaScript/TypeScript formatter powered by wasm ported from Rome
Downloads
6
Maintainers
Readme
Install
npm install @wasm-fmt/rome_fmt
Usage
import init, { format } from "@wasm-fmt/rome_fmt";
await init();
const input = `function foo() {console.log("Hello, world!")}`;
const formatted = format(input);
console.log(formatted);
For Vite users:
import init, { format } from "@wasm-fmt/rome_fmt/vite";
// ...