@freik/files
Version:
File and Path utilities
14 lines (13 loc) • 846 B
TypeScript
export declare function GetTemp(name: string, ext?: string): string;
export declare function GetExtNoDot(fileName: string): string;
export declare function ChangeExt(fileName: string, newExt: string): string;
export declare function Xplat(pathName: string): string;
export declare function TrailingSlash(pathName: string): string;
export declare function Resolve(pathName: string): string;
export declare function Join(...pathNames: string[]): string;
export declare function DirName(pathname: string): string;
export declare function GetRoots(): Promise<string[]>;
export declare function CleanFileName(file: string, ignoreLastPeriod?: boolean): string;
export declare function DirtyFileName(file: string): string;
export declare const Basename: (path: string, suffix?: string) => string;
export declare const Extname: (path: string) => string;