fmtview
v0.3.3
Published
Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, markup, Markdown, TOML, text, and Jinja
Maintainers
Readme
fmtview
Fast CLI viewing, highlighting, search, and diffing for JSON, JSONL, 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 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, and XML-compatible markup 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 source, full docs, and other installation options, see:
https://github.com/siriusctrl/fmtview
