Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grafana/k6-jslib-url
k6 jslib including core-js@3 URL and URLSearchParams web apis
https://github.com/grafana/k6-jslib-url
jslib k6 load-testing url
Last synced: 3 months ago
JSON representation
k6 jslib including core-js@3 URL and URLSearchParams web apis
- Host: GitHub
- URL: https://github.com/grafana/k6-jslib-url
- Owner: grafana
- License: apache-2.0
- Created: 2022-10-06T08:34:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T14:27:50.000Z (11 months ago)
- Last Synced: 2024-09-28T15:21:54.396Z (3 months ago)
- Topics: jslib, k6, load-testing, url
- Language: JavaScript
- Homepage: https://jslib.k6.io
- Size: 19.5 KB
- Stars: 3
- Watchers: 10
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# k6-jslib-url
k6-jslib-url including core-js@3 URL and URLSearchParams web APIs.
## Usage
This jslib can be used in the context of k6 scripts by importing it from its [jslib.k6.io](https://jslib.k6.io/url/1.0.0/index.js) url directly:
```js
import { URL, URLSearchParams } from "https://jslib.k6.io/url/1.0.0/index.js";
```## APIs
### URL
```js
// Constructor
URL()// Properties
hash
host
hostname
href
origin
password
pathname
port
protocol
search
searchParams
username// Methods
toString()
toJSON()
```### URLSearchParams
```js
// Constructor
URLSearchParams()//Methods
append()
delete()
entries()
forEach()
get()
getAll()
has()
keys()
set()
sort()
toString()
values()
```