MCPcopy Index your code
hub / github.com/codemistic/Web-Development / getUser

Function getUser

Github Search Profile App/script.js:8–20  ·  view source on GitHub ↗
(username)

Source from the content-addressed store, hash-verified

6
7
8const getUser = async (username)=>{
9 try{
10 console.log('in try')
11
12 const response = await axios.get(`https://api.github.com/users/${username}`);
13 console.log(response.data)
14 updatedata(response.data);
15 }
16 catch(e){
17 console.log(e.name)
18 console.log(e.message)
19 }
20}
21
22
23

Callers 1

script.jsFile · 0.70

Calls 3

updatedataFunction · 0.85
getMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected