https://github.com/grafana/k6-jslib-formdata
FormData polyfill for k6
https://github.com/grafana/k6-jslib-formdata
formdata jslib k6 keep load-testing
Last synced: 11 months ago
JSON representation
FormData polyfill for k6
- Host: GitHub
- URL: https://github.com/grafana/k6-jslib-formdata
- Owner: grafana
- License: mit
- Created: 2022-10-06T12:34:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-24T07:20:55.000Z (over 2 years ago)
- Last Synced: 2025-07-19T11:43:55.951Z (11 months ago)
- Topics: formdata, jslib, k6, keep, load-testing
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 4
- Watchers: 102
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# k6-jslib-formdata
FormData implements polyfill for k6.
This simplifies the creation of multipart/form-data requests from k6 scripts.
It was adapted from the [original version by Rob Wu](https://gist.github.com/Rob--W/8b5adedd84c0d36aba64) to remove references of
XMLHttpRequest and File related code which isn't supported in k6.
## Usage
```js
import { FormData } from 'https://jslib.k6.io/formdata/0.0.2/index.js';
```
See the [k6 documentation website](https://k6.io/docs/examples/data-uploads/) for more details on how to use the `FormData` object.