I am trying to download a stream using Axios, currently doing it this way:
const config = {
responseType: 'stream',
url: "https://example.com",
method: "GET",
maxRedirects: 0,
decompress: false,
};
const { status, headers, data } = await axios(config);
data.pipe(streamTarget);
Which is working perfectly. However I would like (if possible) to change the size of the chunks obtained from the stream by Axios.
Is this possible? How can I achieve it?