Guest User

Untitled

a guest
May 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const axios = require('axios');
  2.  
  3. async function getUrl() {
  4. const response = await axios.get('http://example.com/');
  5. return response.data;
  6. }
  7.  
  8. async function main() {
  9. const response = await getUrl();
  10. console.log(response);
  11. }
  12.  
  13. main();
Add Comment
Please, Sign In to add comment