• Indent every line of a string by a given string.

    Parameters

    • text: string

      the content to indent

    • indent: string

      the string to use for indentation (probably use whitespace)

    • skipFirst: boolean = false

      whether to skip the first line (useful for indenting in a template literal)

    Returns string

    the indented string

Generated using TypeDoc