fmtview 0.4.1

Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, markup, Markdown, TOML, text, and Jinja
Documentation
pub(crate) mod highlight;
pub(crate) mod structure;
pub(crate) mod transform;

use crate::{
    formats::{ContentShape, FormatSpec},
    load::LoadPlan,
    transform::{FormatKind, TransformStrategy},
};

const EXTENSIONS: &[&str] = &["json"];

pub(crate) const SPEC: FormatSpec = FormatSpec {
    kind: FormatKind::Json,
    extensions: EXTENSIONS,
    shape: ContentShape::WholeDocument,
    load: LoadPlan::EagerTransformedDocument,
    transform: TransformStrategy::PrettyPrint,
};