Skip to content

k6 extension for dealing with the file system

Notifications You must be signed in to change notification settings

faunists/xk6-fs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Alex Rios
Dec 11, 2022
ed9b98a · Dec 11, 2022

History

5 Commits
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022
Dec 11, 2022

Repository files navigation

xk6-fs

k6 extension for dealing with the file system, implemented using the xk6 system.

Build

xk6 build --with github.com/faunists/xk6-fs@latest

Example

import file from 'k6/x/fs';

const root = 'samples';

export default function () {
    const jsFiles = file.walkMatch(root, '*.js');
    console.log(jsFiles)
}

Run sample script

make run-sample

then you should see something like:\

INFO[0000] ["samples/falcon.js","samples/tiger.js"]      source=console

About

k6 extension for dealing with the file system

Resources

Stars

Watchers

Forks

Packages

No packages published