Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 321 Bytes

hash.md

File metadata and controls

25 lines (19 loc) · 321 Bytes

Hash

Usage

import hash from 'url/hash'
const url = 'http://127.0.0.1/#home/arc=1&aid=2'

hash.getArgs() => 
{
	arc: 1,
	aid: 2
}

hash.getHash() => 'home'
const url = 'http://127.0.0.1/#home/arc=1&aid=2'

hash.setArgs({aid:3, sid:4}) => 'http://127.0.0.1/#home/arc=1&aid=3&sid=4'