Skip to content

open-southeners/flex-url

Repository files navigation

Flex Url

Test Codacy Badge Codacy Badge XO code style NPM Downloads NPM Version bundlephobia minified size bundlephobia dependencies bundlephobia tree-shaking Edit on VSCode online

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.

Documentation

Check the official documentation here.

Benchmarks

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.

License

This package is open-sourced software licensed under the MIT license.