Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const axios = require('axios');
- async function getUrl() {
- const response = await axios.get('http://example.com/');
- return response.data;
- }
- async function main() {
- const response = await getUrl();
- console.log(response);
- }
- main();
Add Comment
Please, Sign In to add comment