Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here

url-search-params

Simple polyfill for URLSearchParams standard

Subscribe to updates I use url-search-params


Statistics on url-search-params

Number of watchers on Github 520
Number of open issues 2
Average time to close an issue about 1 month
Main language JavaScript
Average time to merge a PR about 4 hours
Open pull requests 0+
Closed pull requests 0+
Last commit over 2 years ago
Repo Created about 5 years ago
Repo Last Updated over 2 years ago
Size 74 KB
Organization / Authorwebreflection
Contributors3
Page Updated
Do you use url-search-params? Leave a review!
View open issues (2)
View url-search-params activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating url-search-params for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)

url-search-params

build status CDNJS version donate

This is a polyfill for the URLSearchParams API.

It is possible to simply include build/url-search-params.js or grab it via npm.

npm install url-search-params

The function is exported directly.

var URLSearchParams = require('url-search-params');

MIT Style License

About HTMLAnchorElement.prototype.searchParams

This property is already implemented in Firefox and polyfilled here only for browsers that exposes getters and setters through the HTMLAnchorElement.prototype.

In order to know if such property is supported, you must do the check as such:

if ('searchParams' in HTMLAnchorElement.prototype) {
  // polyfill for <a> links supported
}

If you do this check instead:

if (HTMLAnchorElement.prototype.searchParams) {
  // throws a TypeError
}

this polyfill will reflect native behavior, throwing a type error due access to a property in a non instance of HTMLAnchorElement.

Nothing new to learn here, just a reminder.

url-search-params open issues Ask a question     (View All Issues)
  • almost 4 years main file for bower package
url-search-params questions on Stackoverflow (View All Questions)
  • ui-router does not see url search params after page refresh
url-search-params list of languages used
Other projects in JavaScript