0.0.2 • Published 9 months ago

@wasm-fmt/rome_fmt v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Test npm

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";

// ...