Skip to content

extname

Module @netwiv/api/path · Kind Function

import { extname } from '@netwiv/api/path';

Returns the extension of the path.

function extname(path: string): Promise<string>
import { extname } from '@netwiv/api/path';
const ext = await extname('/path/to/file.html');
assert(ext === 'html');

Upstream since 1.0.0


Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.