Skip to content

extname

Returns the file extension of a path.

Import:

import { extname } from '@mnaoumov/typescript-lib/path';

Signature:

const extname: (this: void, path: string) => string

Type: (this: void, path: string) => string