0.1.2 • Published 10 months ago

@xesam/url v0.1.2

Weekly downloads
-
License
ISC
Repository
github
Last release
10 months ago

@xesam/url

Parse url string with RegExp.

npm install @xesam/url

Usage

Usage:

const url = require('@xesam/url');
const comps = url('https://admin:root@www.chelaile.net.cn:80/abc/def?name=xesam#fragment?a=b#c=d');

Output:

{
    protocol: 'https:',
    auth: 'admin:root',
    host: 'www.chelaile.net.cn:80',
    hostname: 'www.chelaile.net.cn',
    port: '80',
    pathname: '/abc/def',
    search: '?name=xesam',
    query: 'name=xesam',
    hash: '#fragment?a=b#c=d'
}
0.1.2

10 months ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago