UNPKG

tar

Version:
19 lines • 923 B
/** Resolve `.` and `..` parts, and remove repeated slashes. */ export declare const normalize: (path: string) => string; /** Join the parts with a slash, then normalize the result. */ export declare const join: (...parts: string[]) => string; /** The path without its last part. */ export declare const dirname: (path: string) => string; /** The last part of the path. */ export declare const basename: (path: string) => string; /** True if the path starts with a slash. */ export declare const isAbsolute: (path: string) => boolean; /** * Resolve the parts from right to left, up to the first absolute * part. There is no working directory here: if no part is absolute, * the result is a relative path. */ export declare const resolve: (...parts: string[]) => string; /** The relative path from `from` to `to`. */ export declare const relative: (from: string, to: string) => string; //# sourceMappingURL=path.d.ts.map