get-apex-domain-name
Robustly parses the root / apex domain name of a URL without the TLD.
Install
npm install --save get-apex-domain-name
Usage
const getApexDomainName = // 'example' // 'example' // 'example' // 'example' // null
License
MIT © Travis Fischer
Support my OSS work by following me on twitter