rome_fmt 0.0.2
Install from the command line:
Learn more about npm packages
$ npm install @wasm-fmt/rome_fmt@0.0.2
Install via package.json:
"@wasm-fmt/rome_fmt": "0.0.2"
About this version
npm install @wasm-fmt/rome_fmt
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";
// ...