You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

flex-url

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flex-url

Zero-dependency utility for parsing and modifying URL params

1.0.5
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 21 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts