• Beautify a text.

    Parameters

    • content: string

      the text content for HTML, CSS, JS, etc.

    • suffix: string

      the suffix, used also as a discriminator in .editorconfig. Can be 'js', 'ts', 'json', 'jsonld', 'html', 'xhtml', 'css', or 'scss'

    • options: ConfigOptions = {}

      see https://www.npmjs.com/package/js-beautify for possible options; these take precedence over the .editorconfig options, when applicable.

    Returns string

    formatted text