UNPKG

keep-a-changelog

Version:

Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.

20 lines 587 B
/** * Return the extension of the `path` with leading period. * * @example Usage * ```ts * import { extname } from "@std/path/windows/extname"; * import { assertEquals } from "@std/assert"; * * const ext = extname("file.ts"); * assertEquals(ext, ".ts"); * ``` * * Note: If you are working with file URLs, * use the new version of `extname` from `@std/path/windows/unstable-extname`. * * @param path The path to get the extension from. * @returns The extension of the `path`. */ export declare function extname(path: string): string; //# sourceMappingURL=extname.d.ts.map