(content: string, options?: FormatFileOptions): string import {format_file} from '@fuzdev/gro/format_file.js'; Formats a string of source code in-process. Passes the input through unchanged when the language is unsupported (an expected no-op), but throws when the formatter rejects the source — e.g. a syntax error — so callers can decide whether to log, skip, or fail rather than silently treating broken input as already-formatted.
content
the source to format
stringoptions
a filepath to infer the language, or an explicit lang
{}returns
string