• Given a 'snake-case', 'snake_case', 'snake:case', or 'snake case' string, will return the camel case version: 'snakeCase'.

    Parameters

    • str: string

      the snake-case input string.

    • upper: boolean = false

      default = false. If true, the first letter of the returned string will be capitalized.

    Returns string

    the camel case version of the input string.