UNPKG

tezx

Version:

TezX is a high-performance, lightweight JavaScript framework designed for speed, scalability, and flexibility. It enables efficient routing, middleware management, and static file serving with minimal configuration. Fully compatible with Node.js, Deno, an

15 lines (14 loc) 470 B
export type UrlRef = { protocol: string | undefined; origin: string | undefined; hostname: string | undefined; port: string | undefined; href: string | undefined; query: { [key: string]: string; }; pathname: string | undefined; }; export declare function sanitizePathSplit(basePath: string, path: string): string[]; export declare const wildcardOrOptionalParamRegex: RegExp; export declare function urlParse(url: string): UrlRef;