Skip to content

Instantly share code, notes, and snippets.

@alanhoff
Created June 8, 2017 03:07
Show Gist options
  • Save alanhoff/61c453a72576e4b9e63eaba84ac3a076 to your computer and use it in GitHub Desktop.
Save alanhoff/61c453a72576e4b9e63eaba84ac3a076 to your computer and use it in GitHub Desktop.
async function fazerAlgo() {
const resposta = await request('https://google.com.br')
await fs.writeFile('resposta.html', resposta)
const resposta2 = await request('https://facebook.com')
await fs.writeFile('resposta2.html', resposta2)
console.log('Todas as respostas foram salvas!')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment