Skip to main content

extname

method path.PlatformPath.extname
Jump to headingPlatformPath.extname(path: string): string

Return the extension of the path, from the last '.' to end of string in the last portion of the path. If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string.

Parameters Jump to heading

Jump to headingpath: string

the path to evaluate.

Return Type Jump to heading

string
TypeError

if path is not a string.

Back to top