+1
-1
| { | ||
| "name": "spliturl", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "拆分url为纯url,将query参数攒成一个Object", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+19
-0
@@ -0,3 +1,22 @@ | ||
| ## 安装 | ||
| ~~~shell | ||
| npm i spliturl | ||
| ~~~ | ||
| ## 使用 | ||
| ~~~javascript | ||
| 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地址 | ||
| *[地址](https://github.com/hnt815/spliturl "标题")* | ||
2683
12.92%23
475%