root-domain

0.1.0 • Public • Published

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.

Package Sidebar

Install

npm i root-domain

Weekly Downloads

44

Version

0.1.0

License

MIT

Last publish

Collaborators

  • jcrugzz