UNPKG

skynet-mysky-utils

Version:
22 lines 672 B
/** * Gets the root path domain for the given path. * * @param path - The given path. * @returns - The path domain. */ export declare function getPathDomain(path: string): string | null; /** * Gets the parent path for the given path. * * @param path - The given path. * @returns - The parent path, or null if no parent. */ export declare function getParentPath(path: string): string | null; /** * Sanitizes the path by removing trailing slashes and removing repeating adjacent slashes. * * @param path - The given path * @returns - The sanitized path. */ export declare function sanitizePath(path: string): string | null; //# sourceMappingURL=paths.d.ts.map