@oazmi/build-tools
Version:
general deno build tool scripts which I practically use in all of my typescript repos
16 lines • 455 B
TypeScript
/**
* Return the extension of the `path` with leading period.
*
* @example
* ```ts
* import { extname } from "@std/path/extname";
*
* console.log(extname("/home/user/Documents/")); // ""
* console.log(extname("/home/user/Documents/image.png")); // ".png"
* ```
*
* @param path with extension
* @returns extension (ex. for `file.ts` returns `.ts`)
*/
export declare function extname(path: string): string;
//# sourceMappingURL=extname.d.ts.map