fmtview
v0.5.2
Published
Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, HTML/XML, Markdown, TOML, text, and Jinja
Downloads
1,338
Maintainers
Readme
fmtview
Fast CLI viewing, highlighting, search, and diffing for JSON, JSONL, HTML, XML-compatible markup, Markdown, TOML, plain text, and Jinja templates.
This npm package installs the prebuilt static Linux x64 fmtview binary.
npm install -g fmtview
fmtview data.json
fmtview page.html
fmtview notes.md
fmtview config.toml
fmtview template.html.j2
fmtview app.logfmtview resolves inputs through type profiles. Extensions such as .json,
.jsonl, .html, .md, .toml, .txt, and .j2 are hints, and unknown
extensions are sniffed from a bounded content prefix where possible.
JSON, JSONL/NDJSON, XML-compatible markup, and HTML are formatted. Markdown,
TOML, plain text, and Jinja templates are passthrough types: they are indexed
and previewed without rewriting their content. Markdown fenced json, toml,
xml/html, and jinja blocks reuse the matching viewer highlighter.
The main product surface is the terminal viewer: fast lazy loading, useful highlighting, in-viewer search, and interactive diffs while redirected stdout stays scriptable.
For a shorter daily command, print or install a shell alias:
fmtview alias zsh
fmtview alias zsh -iThe default alias is fv. Installation refuses to overwrite an existing fv
command; use --name fmtv if you need another name.
For source, full docs, and other installation options, see:
https://github.com/siriusctrl/fmtview
