You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

hash-parse

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hash-parse

hash parse and set

1.0.24
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

hash-parse

hash解析与设置

npm install hash-parse 
import hash from 'hash-parse';

hash.parse('https://github.com/#name=hash'); // {name: 'hash'}

// 如果当前URL=https://github.com
hash.set({ name: 'hash', version: '1.0.0' })  // https://github.com/#name=hash&version=1.0.0

// 删除hash中的参数name
hash.del('name')  // https://github.com/#version=1.0.0

// 删除多个参数
hash.del(['name','version'])  // https://github.com/

Keywords

hash

FAQs

Package last updated on 09 Nov 2018

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