method PrettyPrinterService.prettify
PrettyPrinterService.prettify(
text: string,
syntaxName: string,
): Promise<string>

Return a pretty printed version of the provided text using the specified syntax.

Parameters

text: string

the text to prettify.

syntaxName: string

the syntax to use.

Return Type

Promise<string>

Usage

import type PrettyPrinterService from ".";