Skip to content

Instantly share code, notes, and snippets.

View arn4v's full-sized avatar
🚀
Building things in my bedroom

Arnav Gosain arn4v

🚀
Building things in my bedroom
View GitHub Profile
@arn4v
arn4v / github-proxy-client.js
Created March 16, 2022 09:39 — forked from DavidWells/github-proxy-client.js
Full Github REST api in 34 lines of code
/* Ultra lightweight Github REST Client */
// original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb
const token = 'github-token-here'
const githubClient = generateAPI('https://api.github.com', {
headers: {
'User-Agent': 'xyz',
'Authorization': `bearer ${token}`
}
})