Skip to content

Instantly share code, notes, and snippets.

@JackHowa
Created May 12, 2018 14:33
Show Gist options
  • Save JackHowa/deb48001131dbef7e767cf7217987764 to your computer and use it in GitHub Desktop.
Save JackHowa/deb48001131dbef7e767cf7217987764 to your computer and use it in GitHub Desktop.
SlateblueEvilProducts created by JackHowa - https://repl.it/@JackHowa/SlateblueEvilProducts
const axios = require('axios');
const githubURL = 'https://api.github.com/users/';
const jackGithubUrl = githubURL + 'jackhowa';
const mattGithubUrl = githubURL + 'mattzuzolo';
getDetails();
async function getDetails() {
const jackPromise = axios.get(jackGithubUrl);
const mattPromise = axios.get(mattGithubUrl);
const [jack, matt] = await Promise.all([jackPromise, mattPromise]);
console.log(jack.data);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment