UNPKG

@rockship/apollo-io-mcp

Version:

A powerful Model Context Protocol (MCP) server implementation for seamless Apollo.io API integration, enabling AI assistants to interact with Apollo.io data

21 lines 623 B
// Helper function to strip URL export const stripUrl = (url) => { if (!url) return undefined; try { // Remove protocol (http://, https://) let stripped = url.replace(/^https?:\/\//, ""); // Remove www. stripped = stripped.replace(/^www\./, ""); // Remove trailing slash stripped = stripped.replace(/\/$/, ""); // Convert to lowercase stripped = stripped.toLowerCase(); return stripped; } catch (error) { console.error("Error stripping URL:", error); return url; } }; //# sourceMappingURL=url-helpers.js.map