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