SOURCE

async function getTitle(url) {
  let response = await fetch(url);
  let html = await response.text();
  return html.match(/<title>([\s\S]+)<\/title>/i)[1];;
}
getTitle('http://jsrun.net/7AwKp/edit').then((res)=>console.log(res));
console 命令行工具 X clear

                    
>
console