1.0.4 • Published 3 years ago

url-domain-name v1.0.4

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

url-domain-name

Build

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

Contributors

Thank you to all the contributors who have helped us in making this project better :raised_hands:

1.0.4

3 years ago

1.0.3

4 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago