spliturl

1.0.3 • Public • Published

安装

npm i spliturl

使用

const url = 'https://www.google.com/home?a=b&b=c'
const result = splitUrl(url)
console.log(result)
//result[url] = https://www.google.com/home
//result[params] = {a: 'b',b: 'c'}

github地址

地址

Readme

Keywords

Package Sidebar

Install

npm i spliturl

Weekly Downloads

7

Version

1.0.3

License

ISC

Unpacked Size

3.04 kB

Total Files

3

Last publish

Collaborators

  • didizhanjiang