Chapter 8: add first recipe samples

This commit is contained in:
Beth Griggs
2020-06-30 01:50:08 +01:00
parent 576f4d4263
commit f00aeea981
13 changed files with 2305 additions and 0 deletions
@@ -0,0 +1,9 @@
const fetch = require("node-fetch");
module.exports.getGitHubUser = (username) => {
return fetch("https://api.github.com/users/" + username)
.then((res) => res.json())
.then((json) => {
return json;
});
};