const axios = require('axios'); const url = 'https://www.google.com/' await axios.get(url).then(html => { // handle success const page = html; }).catch(error => { // handle error console.log(error); });