https://github.com/szkiba/xk6-csv
A k6 extension enables to parse CSV values
https://github.com/szkiba/xk6-csv
xk6 xk6-imports-k6-x-csv
Last synced: 2 months ago
JSON representation
A k6 extension enables to parse CSV values
- Host: GitHub
- URL: https://github.com/szkiba/xk6-csv
- Owner: szkiba
- License: mit
- Created: 2021-05-12T12:51:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-18T14:42:06.000Z (3 months ago)
- Last Synced: 2025-03-20T08:44:55.856Z (2 months ago)
- Topics: xk6, xk6-imports-k6-x-csv
- Language: JavaScript
- Homepage:
- Size: 64.5 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xk6-csv
A k6 extension enables k6 tests to comfortably parse CSV values.
The underlying implementation is https://github.com/gocarina/gocsv
Built for [k6](https://go.k6.io/k6) using [xk6](https://github.com/grafana/xk6).
## Usage
Import an entire module's contents:
```JavaScript
import * as CSV from "k6/x/csv";
```Import a single export from a module:
```JavaScript
import { parse } from "k6/x/csv";
```## API
Functions:
- [parse](docs/README.md#parse)
For complete API documentation click [here](docs/README.md)!
## Build
To build a `k6` binary with this extension, first ensure you have the prerequisites:
- [Go toolchain](https://go101.org/article/go-toolchain.html)
- GitThen:
1. Install `xk6`:
```bash
$ go install go.k6.io/xk6/cmd/xk6@latest
```2. Build the binary:
```bash
$ xk6 build --with github.com/szkiba/xk6-csv@latest
```