Module: utils/files/ensureFileExtension

Methods

(static) ensureFileExtension(name, ending) → {string}

Ensures a filename ends with the given extension.

Parameters:
Name Type Description
name string

given filename

ending string

the file extension WITHOUT dot

Source:
Returns:
Type
string