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.
throws
{TypeError} if path is not a string.
Parameters
path: string
the path to evaluate.
Returns string
isBelongTo
isBelongTo(path: string, sub: string): boolean
Parameters
path: string
sub: string
Returns boolean
join
join(...paths: string[]): string
Join all arguments together and normalize the resulting path.
throws
{TypeError} if any of the path segments is not a 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.
{TypeError} if
path
is not a string.