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

拆分url为纯url,将query参数攒成一个Object

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

安装

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地址

地址

Keywords

amount

FAQs

Package last updated on 04 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts