UNPKG

870 BTypeScriptView Raw
1/**
2 * The forward slash path separator.
3 */
4export declare const sep = "/";
5/**
6 * The native path separator depending on the OS.
7 */
8export declare const nativeSep: string;
9/**
10 * @returns the base name of a path.
11 */
12export declare function basename(path: string): string;
13/**
14 * @returns `.far` from `boo.far` or the empty string.
15 */
16export declare function extname(path: string): string;
17export declare function normalize(path: string, toOSPath?: boolean): string;
18/**
19 * Computes the _root_ this path, like `getRoot('c:\files') === c:\`,
20 * `getRoot('files:///files/path') === files:///`,
21 * or `getRoot('\\server\shares\path') === \\server\shares\`
22 */
23export declare function getRoot(path: string, sep?: string): string;
24export declare function isEqualOrParent(path: string, candidate: string, ignoreCase?: boolean): boolean;
25//# sourceMappingURL=paths.d.ts.map
\No newline at end of file