dprint-core

Rust crate for common dprint code.

Features:

Formatting Api

Use:

rust let result = dprint_core::formatting::format(|| { let print_items = ...; // parsed out IR (see example below) print_items }, PrintOptions { indent_width: 4, max_width: 10, use_tabs: false, newline_kind: "\n", });

Example

See overview.md.