url-o-matic

URL helpers. First version just contains 'baseurl(url)' which extracts the root domain or IP of a full URL. 'baseurl' extracts the top-level domains (TLD) but will also handle extracting second level domains (SLD) based on the latest known SLD list.

Usage no npm install needed!

<script type="module">
  import urlOMatic from 'https://cdn.skypack.dev/url-o-matic';
</script>

README

url-o-matic

Contains helpers used to perform common funtions on URLs. First version just contains 'baseurl(url)' which extracts the root domain or IP of a full URL. 'baseurl' extracts the top-level domains (TLD) but will also handle extracting second level domains (SLD) based on the latest known SLD list.