xk6-toml
A k6 extension enables k6 tests to comfortably encode and decode TOML values.
The underlying implementation is https://github.com/pelletier/go-toml
Built for k6 using xk6.
Usage
Import an entire module's contents:
import * as TOML from "k6/x/toml";
Import a single export from a module:
import { parse } from "k6/x/toml";
API
Functions:
For complete API documentation click here!
Build
To build a k6
binary with this extension, first ensure you have the prerequisites:
Then:
- Install
xk6
:
$ go install go.k6.io/xk6/cmd/xk6@latest
- Build the binary:
$ xk6 build --with github.com/szkiba/xk6-toml@latest