extname
extname(
path
):Promise
<string
>
Defined in: path.ts:718
Returns the extension of the path
.
string
Promise
<string
>
import { extname } from '@tauri-apps/api/path';const ext = await extname('/path/to/file.html');assert(ext === 'html');
1.0.0
© 2025 Tauri Contributors. CC-BY / MIT