UNPKG

@visulima/path

Version:

Drop-in replacement of the Node.js path module.

11 lines (9 loc) 652 B
declare const normalizeAliases: (_aliases: Record<string, string>) => Record<string, string>; declare const resolveAlias: (path: string, aliases: Record<string, string>) => string; declare const filename: (path: string) => string; declare const reverseResolveAlias: (path: string, aliases: Record<string, string>) => string; declare const isRelative: (path: string) => boolean; declare const isBinaryPath: (path: string) => boolean; declare const toPath: (urlOrPath: URL | string) => string; declare const isWindows: () => boolean; export { filename, isBinaryPath, isRelative, isWindows, normalizeAliases, resolveAlias, reverseResolveAlias, toPath };