export function basename(path: string, ext?: string): string;
Alternative to Node's path.basename, removing query string after the extension if it exists.
path.basename
Returns: Basename of the path