How to write datas to CSV and save it to local disk using K6?

Hi,when we test API with JMeter, we can extract some parameters of API response data through the regular extractor, and then write beanshell script to save the data to CSV file. I want to know how to write datas to CSV and save it to local disk using K6?


Writing to a file is not supported by k6 core, but it should be doable with xk6-file.

hi tom, how to use xk6-file?Does it need to pre-install with someting?I’ve done step1 and step2,but the program still have error(ERRO[0000] unknown module: k6/x/file)