There are a few different examples of this out in the wild but none I could find were as simple or as fast as this.
🛣 A React library to handle navigation in your WebApp. Built with simple components and React Hoo...
Build your own client-side router with this set of utility functions
Small footprint URL parser that works seamlessly across Node.js and browser environments.
Aliyun OSS(Object Storage Service) JavaScript SDK for the Browser and Node.js
A small utility for parsing URLs of all types.
Micro check library
Object Model Template Engine
[DEPRECATED] An API for working with URLs in JavaScript
Match a URI to a template from a collection of URI Templates
[NO LONGER MAINTAINED] A JS utility for for parsing URLs and extracting information out of them.
URL manipulation cheatsheet for JavaScript
188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.
Javascript URL mutation library
Standard Library
Mighty but tiny URI parser