def snake_to_camel(snake_str: str, delimiter: str = '_') -> str:
    """
    Converts snake_case to camelCase. Useful for projects where different languages like NodeJS are used and you
    have to transform your interchange format from snake_case into camelCase.

    Args:
        snake_str (str): The snake_case string to convert to camelCase.
        delimiter (str): The delimiter to use for the snake_case. Defaults to '_'.

    Returns:
        str: Returns the camelCase representation of the passed snake_case string.

    Example:
        >>> snake_to_camel('the_id')
        'theId'
        >>> snake_to_camel('The_id')
        'theId'
        >>> snake_to_camel('Theid')  # Not snake_case -> as is
        'Theid'
        >>> snake_to_camel('snake_CasE')
        'snakeCase'
        >>> snake_to_camel('camelCase')  # Already camelCase -> as is
        'camelCase'
        >>> snake_to_camel('')
        ''
        >>> snake_to_camel(None)  # Not snake_case -> as is
        'None'

        >>> snake_to_camel('snake.CasE', '.')
        'snakeCase'
    """
    init, *rest = str(snake_str).split(str(delimiter))
    if not rest:
        return init  # Leave it as it is. Probably not snake_case
    return ''.join([init.lower(), *map(str.title, rest)])