basename Method

Get file name from the path.

basename(filePath: string): string

Parameter Type Description
filePath string Path of the file.

Returns - string

File name.

Last Updated: 12 June, 2024