Modelina
    Preparing search index...

    Class FormatHelpers

    Index

    Constructors

    Properties

    toConstantCase: (input: string, options?: Options) => string = constantCase

    Transform into upper case string with an underscore between words.

    Type Declaration

      • (input: string, options?: Options): string
      • Parameters

        • input: string
        • Optionaloptions: Options

        Returns string

    toParamCase: (input: string, options?: Options) => string = paramCase

    Transform into a lower cased string with dashes between words.

    Type Declaration

      • (input: string, options?: Options): string
      • Parameters

        • input: string
        • Optionaloptions: Options

        Returns string

    toPascalCase: (input: string, options?: Options) => string = pascalCase

    Transform into a string of capitalized words without separators.

    Type Declaration

      • (input: string, options?: Options): string
      • Parameters

        • input: string
        • Optionaloptions: Options

        Returns string

    toSnakeCase: (input: string, options?: Options) => string = snakeCase

    Transform into lower case string with an underscore between words.

    Type Declaration

      • (input: string, options?: Options): string
      • Parameters

        • input: string
        • Optionaloptions: Options

        Returns string

    Methods

    • Ensures breaking text into new lines according to newline char (\n) in text.

      Parameters

      • lines: string | string[]

        to breaks

      Returns string[]

    • Ensures indentations are prepended to content.

      Parameters

      • content: string = ''

        to prepend the indentation.

      • size: number = 1

        the number of indentations to use. 1 by default

      • type: IndentationTypes = IndentationTypes.SPACES

        the type of indentations to use. SPACES by default.

      Returns string

    • Lower first char in given string value.

      Parameters

      • value: string

        to change

      Returns string

    • Render given JSON Schema example to string

      Parameters

      • examples: any[]

        to render

      Returns string

    • Replace special characters (Not 0-9,a-z,A-Z) with character names

      Parameters

      • string: string
      • Optionaloptions: ReplaceSpecialCharactersOptions

      Returns string

    • Transform into a string with the separator denoted by the next word capitalized.

      Parameters

      • renderName: string

      Returns string

    • Transform into a string of capitalized words without separators merging numbers.

      Parameters

      • value: string

        to transform

      Returns string

    • Upper first char in given string value.

      Parameters

      • value: string

        to change

      Returns string