{"id":13445865,"url":"https://github.com/lifaon74/url-polyfill","last_synced_at":"2025-05-15T08:09:07.926Z","repository":{"id":56566659,"uuid":"85562415","full_name":"lifaon74/url-polyfill","owner":"lifaon74","description":"Polyfill URL and URLSearchParams to match last ES7 specifications","archived":false,"fork":false,"pushed_at":"2020-10-31T07:04:05.000Z","size":126,"stargazers_count":319,"open_issues_count":6,"forks_count":55,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-16T21:04:06.088Z","etag":null,"topics":["polyfill","url","urlsearchparams"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lifaon74.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-20T10:12:15.000Z","updated_at":"2024-05-10T02:31:32.000Z","dependencies_parsed_at":"2022-08-15T21:01:01.014Z","dependency_job_id":null,"html_url":"https://github.com/lifaon74/url-polyfill","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifaon74%2Furl-polyfill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifaon74%2Furl-polyfill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifaon74%2Furl-polyfill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lifaon74%2Furl-polyfill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lifaon74","download_url":"https://codeload.github.com/lifaon74/url-polyfill/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247791388,"owners_count":20996740,"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":["polyfill","url","urlsearchparams"],"created_at":"2024-07-31T05:00:40.870Z","updated_at":"2025-04-08T06:31:12.298Z","avatar_url":"https://github.com/lifaon74.png","language":"JavaScript","readme":"### Polyfill URL and URLSearchParams to match last WHATWG specifications\n\nCompliant in most of the use cases but not at 100% (like unicode chars, punycodes, etc...)\n\nTested on IE 10+\n\n#### Install\n```\nnpm i url-polyfill --save\n```\n\n#### Currently supported\n\n##### window.URL\n\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/API/URL\n\nSupported : 'hash', 'host', 'hostname', 'href', 'port', 'protocol', 'search', 'toString', 'pathname', 'origin', 'searchParams'\n\nExample:\n\n```js\nconst url = new URL('https://www.example.com:8080/?fr=yset_ie_syc_oracle\u0026type=orcl_hpset#page0');\n```\n- hash: `\"page0\"`\n- host: `\"www.example.com:8080\"`\n- hostname: `\"www.example.com\"`\n- href: `\"https://www.example.com:8080/?fr=yset_ie_syc_oracle\u0026type=orcl_hpset#page0\"`\n- origin: `\"https://www.example.com:8080\"`\n- pathname: `\"/\"`\n- port: `\"8080\"`\n- protocol: `\"https:\"`\n- search: `\"?fr=yset_ie_syc_oracle\u0026type=orcl_hpset\"`\n- searchParams: URLSearchParams (see next)\n\n##### window.URLSearchParams\n\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams\n\nSupported : 'append', 'delete', 'get', 'getAll', 'has', 'set', 'forEach', 'keys', 'values', 'entries', 'toString', 'Symbol.iterator'\n\nExample:\n\n```js\nconst url = new URL('https://www.example.com/?fr=yset_ie_syc_oracle\u0026type=orcl_hpset#page0');\nurl.searchParams.append('page', 0);\nconsole.log(url.toString()); // print: \"https://www.example.com/?fr=yset_ie_syc_oracle\u0026type=orcl_hpset\u0026page=0#page0\"\n```\n","funding_links":[],"categories":["第三方库介绍","JavaScript"],"sub_categories":["工具库"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifaon74%2Furl-polyfill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flifaon74%2Furl-polyfill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flifaon74%2Furl-polyfill/lists"}