MCPcopy Index your code
hub / github.com/TechSpiritSS/Terminal-Portfolio / fetchGithubSocialStats

Function fetchGithubSocialStats

scripts/fetchStats.js:17–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16//Stat functions
17async function fetchGithubSocialStats() {
18 const githubLink = config.social.find((c) => c.title === "Github").link;
19 const githubUsername =
20 githubLink.split("/")[githubLink.split("/").length - 1];
21 const responseRaw = await fetch(
22 `https://api.github.com/users/${githubUsername}`
23 );
24 const response = await responseRaw.json();
25 followers = response.followers;
26 following = response.following;
27}
28
29async function fetchLinkedInStats() {
30 const Linkedinkink = config.social.find((c) => c.title === "LinkedIn").link;

Callers 1

script.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected