23 lines
1.3 KiB
Markdown
23 lines
1.3 KiB
Markdown
# URLSearchParams
|
|
|
|
[](https://travis-ci.com/ungap/url-search-params) [](https://coveralls.io/github/ungap/url-search-params?branch=master) [](https://greenkeeper.io/) 
|
|
|
|
|
|
The [URLSearchParams](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) polyfill.
|
|
|
|
Previously known as [url-search-params](https://github.com/WebReflection/url-search-params).
|
|
|
|
All detections have been included and the code covered 100% (DOM patches are not measured on NodeJS though).
|
|
|
|
* CDN global patch via https://unpkg.com/@ungap/url-search-params
|
|
* ESM via `import URLSearchParams from '@ungap/url-search-params'`
|
|
* CJS via `const URLSearchParams = require('@ungap/url-search-params')`
|
|
|
|
[Live test](https://ungap.github.io/url-search-params/test/)
|
|
|
|
### ⚠ Webpack Users
|
|
|
|
If you have issues just requiring `@ungap/url-search-params`, be sure you require `@ungap/url-search-params/cjs` instead.
|
|
|
|
No issue should happen if you just `import` the module instead.
|