https://github.com/open-southeners/flex-url
Zero-dependency utility for parsing and modifying URL params
https://github.com/open-southeners/flex-url
browser json-api nodejs typescript url-filters url-parameters url-parsing url-transformer
Last synced: about 1 month ago
JSON representation
Zero-dependency utility for parsing and modifying URL params
- Host: GitHub
- URL: https://github.com/open-southeners/flex-url
- Owner: open-southeners
- License: mit
- Created: 2021-11-25T16:32:20.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-25T12:01:29.000Z (over 2 years ago)
- Last Synced: 2025-02-21T09:40:45.308Z (2 months ago)
- Topics: browser, json-api, nodejs, typescript, url-filters, url-parameters, url-parsing, url-transformer
- Language: TypeScript
- Homepage: https://docs.opensoutheners.com/flex-url/
- Size: 1.54 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flex Url
[](https://github.com/d8vjork/flex-url/actions/workflows/tests.yml) [](https://www.codacy.com/gh/open-southeners/flex-url/dashboard?utm_source=github.com&utm_medium=referral&utm_content=open-southeners/flex-url&utm_campaign=Badge_Coverage) [](https://www.codacy.com/gh/open-southeners/flex-url/dashboard?utm_source=github.com&utm_medium=referral&utm_content=open-southeners/flex-url&utm_campaign=Badge_Grade) [](https://github.com/xojs/xo) [](https://www.npmjs.com/package/flex-url) [](https://www.npmjs.com/package/flex-url) [](https://bundlephobia.com/package/flex-url) [](https://bundlephobia.com/package/flex-url) [](https://bundlephobia.com/package/flex-url) [](https://vscode.dev/github/open-southeners/flex-url)
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](https://docs.opensoutheners.com/flex-url).
## Benchmarks
And here some benchmarks to show up why this library is not only the easiest to use alternative (even for native ones):
```sh
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](https://opensource.org/licenses/MIT).