Flex Url is a utility with almost zero dependencies that aims simplicity at the time of parsing and modifying a URL on a browser or node based app.
Check the official documentation here.
And here some benchmarks to show up why this library is not only the easiest to use alternative (even for native ones):
createFlexUrl x 3,040,944 ops/sec ±1.47% (89 runs sampled)
url-parse x 562,052 ops/sec ±3.57% (87 runs sampled)
URL (browser native) x 407,001 ops/sec ±2.09% (86 runs sampled)
Also note that this is the result of just doing parsing on the query search part of the URL.
This package is open-sourced software licensed under the MIT license.