1.0.1 • Published 11 months ago

@apimediaru/history.js v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

History.js


API

pushState(url?: string, replace?: boolean)
To push history state.

replaceState(url?: string)
To replace history state.

add(key: string, value: string, replace?: boolean)
To add a pair of key => value to query.

remove(key: string, replace?: boolean)
To remove the param from query.

getHash(path?: string)
Get current hash.

pushHash(path: string)
To add hash to current path and push to history.

replaceHash(path: string)
To add hash to current path and replace in history.

has(key: string) Check query param is set.

get(key: string) Returns value for query param with given name.

all() Get all query vars as object

1.0.1

11 months ago

1.0.0

11 months ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago