prim-fmt
The formatting engine behind prim — an opinionated, near-zero-config formatter for a repository's connective tissue (Markdown, JSON/JSONC, YAML, TOML) plus whitespace hygiene.
This crate is the pure library: strings in, strings out, no CLI or terminal
dependencies, so other tools can embed it. The prim binary is published
separately as prim-cli.
Status: early.
classify+formatapply the whitespace-hygiene pass to the parsed formats and the orphan allowlist; structured per-format passes land in later milestones. See the specification.
Usage
use Path;
// Classify a file by name, then format its contents for that kind.
if let Some = classify
License
MIT © driftsys