@wasm-fmt/json_fmt
v0.1.13
Published
JSON formatter powered by WASM ported from Biome
Downloads
84
Readme
Install
npm install @wasm-fmt/json_fmt
npx jsr add @fmt/json-fmt
Usage
import init, { format } from "@wasm-fmt/json_fmt";
await init();
const input = `{"hello":"world"}`;
const formatted = format(input);
console.log(formatted);
For Vite users:
import init, { format } from "@wasm-fmt/json_fmt/vite";
// ...