UNPKG

lib-linkedin-url

Version:

Utility library to work with LinkedIn profile URLs: get the canonical url, validate, etc.

14 lines (13 loc) 528 B
/** * @description Extracts linkedin subdomain from linkedin url * @param url {string} url to extract linkedin subdomain from * @returns {string} linkedin subdomain */ export declare function extractLinkedInSubdomain(url: string): string; /** * @description Extracts country name from linkedin url * @note default or unknown country is "United States" * @param url {string} url to extract country name from * @returns {string} country name in english */ export declare function extractCountryName(url: string): string;