cspell-lib
Version:
A library of useful functions used across various cspell tools.
17 lines • 869 B
TypeScript
export { addTrailingSlash, isDataURL, isFileURL, isUrlLike as isURLLike, toFileURL as resolveFileWithURL, toFileDirURL, toFilePathOrHref, toURL, } from '@cspell/url';
/**
* This is a URL that can be used for searching for modules.
* @returns URL for the source directory
*/
export declare function getSourceDirectoryUrl(): URL;
/**
* @param path - path to convert to a URL
* @param relativeTo - URL to resolve the path against or the current working directory.
* @returns a URL
*/
export declare function relativeTo(path: string, relativeTo?: URL | string): URL;
export declare function cwdURL(): URL;
export declare function toFileUrl(file: string | URL): URL;
export declare function fileURLOrPathToPath(filenameOrURL: string | URL): string;
export declare function windowsDriveLetterToUpper(absoluteFilePath: string): string;
//# sourceMappingURL=url.d.ts.map