Coder Social home page Coder Social logo

open-southeners / flex-url Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.57 MB

Zero-dependency utility for parsing and modifying URL params

Home Page: https://docs.opensoutheners.com/flex-url/

License: MIT License

TypeScript 100.00%
typescript browser nodejs url-parsing json-api url-filters url-parameters url-transformer

flex-url's Introduction

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.

flex-url's People

Contributors

d8vjork avatar

Watchers

 avatar  avatar

flex-url's Issues

To release v1

  • Add parameter to filterBy method: and (false = or operator) as boolean
  • Check NodeJS compatibility
  • Check performance, bundle size & browser compatibility (added to CI)
  • Add Github actions (tests, etc)
  • Add URL segment encoding to our internal fork of qss (evaluating if use decodeURI to first segment and/or decodeURIComponent to all/second segment)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.