UNPKG

reviewit

Version:

A lightweight command-line tool that spins up a local web server to display Git commit diffs in a GitHub-like Files changed view

13 lines (12 loc) 406 B
/** * Get file extension from filename or filepath * @param filename - The filename or filepath * @returns The file extension in lowercase, or null if no extension */ export declare function getFileExtension(filename: string): string | null; /** * Get filename from filepath * @param filepath - The filepath * @returns The filename */ export declare function getFileName(filepath: string): string;