@jswork/extract-domain
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

extract-domain

Extracts domain from URL.

version license size download

installation

npm install @jswork/extract-domain

usage

import extractDomain from '@jswork/extract-domain';

const res = extractDomain('https://www.example.com/page');
// www.example.com

license

Code released under the MIT license.

Readme

Keywords

Package Sidebar

Install

npm i @jswork/extract-domain

Homepage

js.work

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

6.04 kB

Total Files

6

Last publish

Collaborators

  • afeiship