Socket
Socket
Sign inDemoInstall

hash-parse

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hash-parse

hash parse and set


Version published
Weekly downloads
55
increased by61.76%
Maintainers
1
Install size
1.84 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 09 Nov 2018

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc