waitStdout = (proc) => {
  return new Promise((resolve) => {
    proc.stdout.on('data', (data) => {
      resolve(data.toString());
    });
  });
}
@param {import('child_process').ChildProcessWithoutNullStreams} proc
@returns {Promise<string>}