Skip to main content
Version: 0.7.2

HTTP requests

You can make HTTP and HTTPS requests directly using fetch, which is a wrapper around node-fetch:

module.exports = {
run: async () => {
const googleHomePage = await fetch('https://www.google.com')
console.log(await googleHomePage.text())
}
}