https://github.com/stynh/githubpinnedrepos.js
A simple Javascript extension to fetch pinned repositories from a Github profile.
https://github.com/stynh/githubpinnedrepos.js
api github javascript repository
Last synced: about 2 months ago
JSON representation
A simple Javascript extension to fetch pinned repositories from a Github profile.
- Host: GitHub
- URL: https://github.com/stynh/githubpinnedrepos.js
- Owner: StynH
- License: mit
- Created: 2022-02-15T14:27:11.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-22T09:37:54.000Z (about 4 years ago)
- Last Synced: 2026-04-03T04:57:32.137Z (3 months ago)
- Topics: api, github, javascript, repository
- Language: TypeScript
- Homepage:
- Size: 288 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GithubPinnedRepos.js
[](https://badge.fury.io/js/githubpinnedrepos)


A simple Javascript extension to fetch pinned repositories from a Github profile.
## Usage
You will need a [Github Personal Access Token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) that has access to **read:user**.
### Example
```html
function printRepos(repos){
console.log(repos);
}
window.GithubPinnedRepos.getPinnedRepos(*YourGithubUsername*, *YourPersonalAccessToken*, printRepos);
```
**Example Output**
```json
{
"itemsRemaining": 0,
"totalPinnedRepos": 6,
"pinnedRepos": [
{
"name": "CrossWars-2",
"url": "https://github.com/StynVanDeHaterd/CrossWars-2",
"primaryLanguage": "C"
},
{
"name": "B2Engine",
"url": "https://github.com/StynVanDeHaterd/B2Engine",
"primaryLanguage": "C"
},
{
"name": "CrossWars",
"url": "https://github.com/StynVanDeHaterd/CrossWars",
"primaryLanguage": "C++"
},
{
"name": "floatygons.js",
"url": "https://github.com/StynVanDeHaterd/floatygons.js",
"primaryLanguage": "JavaScript"
},
{
"name": "textygons.js",
"url": "https://github.com/StynVanDeHaterd/textygons.js",
"primaryLanguage": "TypeScript"
},
{
"name": "texterfall.js",
"url": "https://github.com/StynVanDeHaterd/texterfall.js",
"primaryLanguage": "TypeScript"
}
]
}
```