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 |
Returns:
- Type
- string