Returns the base name of a file, optionally removing the file extension.
Import:
import { basename } from 'obsidian-dev-utils/path';
Signature:
const basename: (this: void, path: string, ext?: string | undefined) => string
Type: (this: void, path: string, ext?: string | undefined) => string