10 lines
227 B
JavaScript
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;
|
|
});
|
|
};
|