@wasm-fmt/json_fmt
v0.1.12
Published
JSON formatter powered by WASM ported from Biome
Downloads
128
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";
// ...