fmtview 0.4.2

Fast CLI viewer for highlighting, search, and diffs across JSON, JSONL, markup, Markdown, TOML, text, and Jinja
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    formats::{ContentShape, FormatSpec},
    load::LoadPlan,
    transform::{FormatKind, TransformStrategy},
};

const EXTENSIONS: &[&str] = &["jsonl", "ndjson"];

pub(crate) const SPEC: FormatSpec = FormatSpec {
    kind: FormatKind::Jsonl,
    extensions: EXTENSIONS,
    shape: ContentShape::RecordStream,
    load: LoadPlan::LazyTransformedRecords,
    transform: TransformStrategy::RecordPrettyPrint,
};