'use strict' const fetch = require('node-fetch') fetch('https://google.com') .then((res) => res.text()) .then((html) => console.log(html))