@freik/node-utils
Version:
My personal set of utilities for NodeJS
13 lines (12 loc) • 781 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 fileClean(file: string, ignoreLastPeriod?: boolean): string;
export declare const basename: (path: string, suffix?: string) => string;
export declare const extname: (path: string) => string;