@jswork/next-domain

1.0.5 • Public • Published

next-domain

Get url domain for next.

version license size download

installation

npm install -S @jswork/next-domain

usage

import '@jswork/next-domain';

// normal
nx.domain('https://www.baidu.com/');  // baidu.com

// 2 level
nx.domain('http://12345.i.taobao.com', 2);  // taobao.com

license

Code released under the MIT license.

Package Sidebar

Install

npm i @jswork/next-domain

Weekly Downloads

2

Version

1.0.5

License

MIT

Unpacked Size

4.58 kB

Total Files

5

Last publish

Collaborators

  • afeiship