Skip to content

arshadkazmi42/url-domain-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

url-domain-name

Build NPM Version NPM Downloads Github Repo Size LICENSE Contributors Commit

Get domain name from url

Install

npm i url-domain-name

Usage

const Domain = require('url-domain-name');

domainName = Domain.from('https://github.com/arshadkazmi42');
console.log(domainName);

// Output
// github.com


domainName = Domain.from('https://mail.google.com/arshadkazmi42');
console.log(domainName);

// Output
// mail.google.com

API

  • from(url)
    • Returns domain name from input url

Contributing

Interested in contributing to this project? You can log any issues or suggestion related to this library here

Read our contributing guide on getting started with contributing to the codebase

About

Get domain name from url

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors