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