We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
normalizePath.ts•399 B
/**
* Normalize a path for glob by replacing backslashes with forward slashes
*
* Utils for Windows compatibility, as Glob pattern as `**\\*.js` is not supported
*
* C:\\Users\\John\\Desktop\\test.txt -> C:/Users/John/Desktop/test.txt
*
* @param path - The path to normalize
* @returns The normalized path
*/
export const normalizePath = (path: string): string => path.replace(/\\/g, '/');