New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

spliturl

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spliturl - npm Package Compare versions

Comparing version
1.0.0
to
1.0.1
+1
-1
package.json
{
"name": "spliturl",
"version": "1.0.0",
"version": "1.0.1",
"description": "拆分url为纯url,将query参数攒成一个Object",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -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 "标题")*