output;
}
if i return output, i get empty object. But when i print output inside stdout, it shows data. How can i fix this?
can you just wait until all the data is received before returning?
let output = '' for await (const chunk of stdout) output += chunk
Обсуждают сегодня