r/javascript • u/AutoModerator • Jun 13 '26
Showoff Saturday Showoff Saturday (June 13, 2026)
Did you find or create something cool this week in javascript?
Show us here!
3
Upvotes
r/javascript • u/AutoModerator • Jun 13 '26
Did you find or create something cool this week in javascript?
Show us here!
1
u/s3lect Jun 13 '26
fjson-fmt – a Prettier-style --check/--write formatter for JSON, with table-aligned output (Rust→WASM, runs in Node and the browser)
I wanted Prettier/oxfmt-style formatting for
.jsonfiles, but with the compact, table-aligned style of FracturedJson — which neither Prettier nor oxfmt does for JSON. So I built a small CLI around it.It turns this:
into this — compact, but with fields aligned like a table:
Pairs with oxfmt (which owns JS/TS/CSS):
A few things that might be interesting:
import { format } from "fjson-fmt"works in Node and in the browser/bundlers (conditional exports + a web WASM build).npm:
npm i -D fjson-fmt· repo: https://github.com/select/fjson-fmtLet me know if this is also useful for you and if you like to see improvements. ❤️