UNPKG

@ejazullah/smart-browser-automation

Version:

A smart AI-driven browser automation library and REST API server using MCP (Model Context Protocol) and LangChain for multi-step task execution. Includes both programmatic library usage and HTTP API server for remote automation.

14 lines 440 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getSubdomain; /** * Returns the subdomain of a hostname string */ function getSubdomain(hostname, domain) { // If `hostname` and `domain` are the same, then there is no sub-domain if (domain.length === hostname.length) { return ''; } return hostname.slice(0, -domain.length - 1); } //# sourceMappingURL=subdomain.js.map