• Normalize a file name by ensuring it has the given extension, if it doesn't already.

    Parameters

    • fileName: string

      The file name to normalize.

    • extension: string

      The desired extension, without a leading period.

    Returns string

    • The normalized file name, with the extension.

Generated using TypeDoc