JS String/String Related – A Weblog of Priyank Maniar https://priyank.rocks Articles on web development & mobile app development Wed, 01 Mar 2023 14:00:43 +0000 en-US hourly 1 https://wordpress.org/?v=6.6.2 JavaScript PSL | A quick way to get domain, tld, sld, domain and sub domain from a String | Validate domain name https://priyank.rocks/javascript-psl-a-quick-way-to-get-domain-tld-sld-domain-and-sub-domain-from-a-string/ Wed, 01 Mar 2023 13:58:05 +0000 https://priyank.rocks/?p=9340 Here’s a JavaScript library that helps extracts part from the URL. i.e. TLD (e.g. .com), Second level domain e.g. google, and subdomain e.g. mail, and domain name: google.com.

The package does more than just string extractions, it also validates whether a domain is valid or not.

]]>