2020-06-30 01:50:08 +01:00

10 lines
227 B
JavaScript

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;
});
};