burger-api
Version:
<p align="center"> <img src="https://github.com/user-attachments/assets/0d9b376e-1d89-479a-aa7f-e7ee3c6b2342" alt="BurgerAPI logo"/> </p>
22 lines (21 loc) • 854 B
TypeScript
export { ROUTE_CONSTANTS, HTTP_METHODS, compareRoutes, getRouteSpecificity, collectRoutes, } from './routing.js';
/**
* Resolves the given path to the specified directory.
* @param directory the directory to resolve to
* @param path the path to resolve
* @returns the resolved path
*/
export declare function setDir(directory: string, path: string): string;
/**
* Removes leading and trailing slashes from the given prefix.
* @param prefix the prefix to clean
* @returns the cleaned prefix
*/
export declare function cleanPrefix(prefix: string): string;
/**
* Normalizes a file path by replacing multiple slashes with a single slash
* and removing any trailing slash, unless the path is the root.
* @param path The file path to normalize.
* @returns The normalized file path.
*/
export declare function normalizePath(path: string): string;