{"id":15048368,"url":"https://github.com/github/url-search-params","last_synced_at":"2025-10-04T08:31:28.739Z","repository":{"id":65974911,"uuid":"123273570","full_name":"github/url-search-params","owner":"github","description":"Simple polyfill for URLSearchParams standard","archived":true,"fork":true,"pushed_at":"2019-05-17T22:30:56.000Z","size":73,"stargazers_count":12,"open_issues_count":0,"forks_count":17,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-09-25T21:11:04.470Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"WebReflection/url-search-params","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-28T11:08:49.000Z","updated_at":"2024-07-31T03:18:30.000Z","dependencies_parsed_at":"2023-02-19T18:01:08.863Z","dependency_job_id":null,"html_url":"https://github.com/github/url-search-params","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Furl-search-params","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Furl-search-params/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Furl-search-params/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Furl-search-params/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/url-search-params/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219876581,"owners_count":16554769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T21:11:10.724Z","updated_at":"2025-10-04T08:31:28.412Z","avatar_url":"https://github.com/github.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"url-search-params\n=================\n\n[![build status](https://secure.travis-ci.org/WebReflection/url-search-params.svg)](http://travis-ci.org/WebReflection/url-search-params) [![CDNJS version](https://img.shields.io/cdnjs/v/url-search-params.svg)](https://cdnjs.com/libraries/url-search-params) [![donate](https://img.shields.io/badge/$-donate-ff69b4.svg?maxAge=2592000\u0026style=flat)](https://github.com/WebReflection/donate)\n\nThis is a polyfill for the [URLSearchParams API](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams).\n\nIt is possible to simply include [build/url-search-params.js](build/url-search-params.js) or grab it via npm.\n\n```\nnpm install url-search-params\n```\n\nThe function is exported directly.\n```js\nvar URLSearchParams = require('url-search-params');\n```\n\nMIT Style License\n\n#### About HTMLAnchorElement.prototype.searchParams\nThis property is already implemented in Firefox and polyfilled here only for browsers that exposes getters and setters\nthrough the `HTMLAnchorElement.prototype`.\n\nIn order to know if such property is supported, you **must** do the check as such:\n```\nif ('searchParams' in HTMLAnchorElement.prototype) {\n  // polyfill for \u003ca\u003e links supported\n}\n```\nIf you do this check instead:\n```js\nif (HTMLAnchorElement.prototype.searchParams) {\n  // throws a TypeError\n}\n```\nthis polyfill will reflect native behavior, throwing a type error due access to a property in a non instance of `HTMLAnchorElement`.\n\nNothing new to learn here, [just a reminder](http://webreflection.blogspot.co.uk/2011/08/please-stop-reassigning-for-no-reason.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Furl-search-params","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Furl-search-params","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Furl-search-params/lists"}