Closed dancherb closed 3 years ago
Hey. Did you try with extractDomain('https://www.google.co.uk', { tld: true })?
➜ extract-domain-test cat index.js
const extractDomain = require("extract-domain");
console.log(extractDomain("https://www.google.co.uk", { tld: true }))
➜ extract-domain-test node index.js
google.co.uk
Hey. Did you try with extractDomain('https://www.google.co.uk', { tld: true })?
Oops. Cheers boss
Thanks for the work - currently this can't be used with multi-part domain endings such as .co.uk or .com.au (and countless others).