@kentaylorappdev/get-pinned-repos
v1.1.3
Published
Get the pinned repos for a github username
Downloads
12
Maintainers
Readme
get-pinned-repos
Get the pinned repos for a github username. No token required.
getPinnedRepos_v2 is recommended. getPinnedRepos is the old version and will be removed soon.
Feel free to submit feature requests or issues on the github page.
Or send an email to [email protected]
Installation
npm install --save @kentaylorappdev/get-pinned-repos
includes typescript support
Usage
import { getPinnedRepos_v2 } from '@kentaylorappdev/get-pinned-repos'
getPinnedRepos_v2('ktappdev')
.then(console.log)
[
{
repo: 'KTAppDev/notes-app-frontend-public',
description: 'Secret Note Now you can add or replace an image with every note! Notes and Images stored on "secretnote" can be public or private,depending on the title. Simple titles lead to highly visible notes…',
languages: 'Vue',
stars: 3
},
{
repo: 'KTAppDev/tm-nextjs',
description: 'Meet Tools Manager: Your NextJS sidekick for keeping all your favorite tools in check. Organize,access,conquer – all with a dash of NextJS magic.',
languages: 'TypeScript',
stars: 0
},
... ...
Array of objects with repo, description, languages and stars
]
Old Version
import { getPinnedRepos } from '@kentaylorappdev/get-pinned-repos'
getPinnedRepos('ktappdev')
.then(console.log)
[ "KTAppDev/notes-app-frontend-public", "KTAppDev/tm-nextjs",
"KTAppDev/notes-express-api-public", "KTAppDev/Switch-Power-profile",
"KTAppDev/bad-words-thing", "KTAppDev/review-it-nextjs-v7"
]
This remains in here for anyone who started using the tool from day 1
License
MIT