@jswork/extract-domain
v1.0.3
Published
Extracts domain from URL.
Downloads
14
Readme
extract-domain
Extracts domain from URL.
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.