root-domain
v0.1.0
Published
returns the root domain of any domain you give it
Downloads
339
Maintainers
Readme
root-domain
simply returns the root-domain of any url or host that you give it
var parse = require('root-domain');
console.log(parse('mail.google.com'));
// 'google.com'
All the hard work is done by
parse-domain
.