get-domain-from-url

0.0.1 • Public • Published

get-domain-from-url

Get domain from an url

NPM version Build status Dependency Status devDependency Status Code Climate Dependency Status

Usage

const getDomain = require('get-domain-from-url');
getDomain('mail.google.com'); // google.com
getDomain('mail.google.co.uk'); // google.co.uk
getDomain('0.0.0.0:1664'); // ''

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i get-domain-from-url

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • sebastienelet