Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "lib/util/formatUtils"

Index

Functions

countTill

  • countTill(s: string, char: string): number
  • Return the count of characters till the desired character is found

    Parameters

    • s: string
    • char: string

    Returns number

indent

  • indent(what: string, indentToUse: string, n: number): string
  • Indent the given content appropriately. it should have its own internal indentation

    Parameters

    • what: string
    • indentToUse: string
    • n: number

    Returns string

insertAt

  • insertAt(f: ProjectFile, position: number, what: string): Promise<ProjectFile>
  • Insert at the given position

    Parameters

    • f: ProjectFile
    • position: number
    • what: string

    Returns Promise<ProjectFile>

Generated using TypeDoc