UNPKG

@oaklean/profiler-core

Version:

Part of the @oaklean suite. It provides all basic functions to work with the `.oak` file format. It allows parsing the `.oak` file format as well as tools for analyzing the measurement values. It also provides all necessary capabilities required for prec

21 lines (20 loc) 849 B
/** * Resolves path segments properly based on whether they appear to be c:/ -style or / style. */ export declare function properRelative(fromPath: string, toPath: string): string; export declare function resetCaseSensitivePaths(): void; export declare function setCaseSensitivePaths(sensitive: boolean): void; export declare function getCaseSensitivePaths(): boolean; /** * Lowercases the path if the filesystem is case-insensitive. Warning: this * should only be done for the purposes of comparing paths. */ export declare function lowerCaseInsensitivePath(path: string): string; /** * Converts the file URL to an absolute path, if possible. */ export declare function maybeFileUrlToPath(fileUrl: string): string; /** * Returns whether the path looks like a Windows path. */ export declare const isWindowsPath: (path: string) => boolean;