pub fn format(source: &str) -> Result<JsValue, JsError>
Format a Beancount source string.
Parses and reformats with consistent alignment. Returns a FormatResult with the formatted source or errors.
FormatResult