Skip to content

Instantly share code, notes, and snippets.

View gittegit's full-sized avatar
🏠
Working from home

Brigitte Kwasny gittegit

🏠
Working from home
View GitHub Profile
@up1
up1 / async.js
Last active May 1, 2024 12:52
NodeJS with Async/Await
var fetch = require('node-fetch')
async function getDataFromAPI() {
let response = await fetch("https://api.github.com/users/up1")
let data = await response.json()
console.log(JSON.stringify(data, null, "\t"))
}
getDataFromAPI()