Skip to main content
Glama

MCP Browser Screenshot Server

dnsDomainIs.jsโ€ข790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Returns true iff the domain of hostname matches. * * Examples: * * ``` js * dnsDomainIs("www.netscape.com", ".netscape.com") * // is true. * * dnsDomainIs("www", ".netscape.com") * // is false. * * dnsDomainIs("www.mcom.com", ".netscape.com") * // is false. * ``` * * * @param {String} host is the hostname from the URL. * @param {String} domain is the domain name to test the hostname against. * @return {Boolean} true iff the domain of the hostname matches. */ function dnsDomainIs(host, domain) { host = String(host); domain = String(domain); return host.substr(domain.length * -1) === domain; } exports.default = dnsDomainIs; //# sourceMappingURL=dnsDomainIs.js.map

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/seabassgonzalez/mcp-browser-screenshot'

If you have feedback or need assistance with the MCP directory API, please join our Discord server