Extract root domain name from an URL.
npm install --save get-root-domain
getRootDomain( url: string | URL ): string;
import getRootDomain from 'get-root-domain';
console.log(
getRootDomain('http://www.google.co.uk/blah'), // "google.co.uk"
getRootDomain('http://www.e.leclerc/test'), // "e.leclerc"
);