Clear all hash parameters
Destroy the router and remove event listeners
Get a specific parameter value
Parameter key
Default value if parameter doesn't exist
Parameter value
Get current hash parameters as an object
Parameters object
Add a listener for hash changes
Callback function that receives (newParams, oldParams)
Unsubscribe function
Remove a specific parameter
Parameter key to remove
If true, replace current history entry instead of adding new one
Set a specific parameter
Parameter key
Parameter value
If true, replace current history entry instead of adding new one
Update hash parameters (replaces current hash)
Parameters to set
If true, replace current history entry instead of adding new one
Update specific hash parameters (merges with existing)
Parameters to update
If true, replace current history entry instead of adding new one
Simple Hash Router for client-side routing with URLSearchParams Provides utilities for reading, updating, and listening to hash changes