github-pinned

2.2.0 • Public • Published

With ♥ by Kotiasv

Npm package for getting pinned repos

Usage

First, create new Github client and set your Github token:

import GithubClient from "github-pinned"

const client = new GithubClient()
client.setToken(<TOKEN>)

Then, get user pinned repos with getPinnedRepos

const repos = await getPinnedRepos("kotiasv")

Response type example:

type GithubQuery = {
    name: string
    url: string
    primaryLanguage: {
        name: string
        color: string
    }
    description: string
    homepageUrl: string
}

Contributions

This project is Open Source. Your feedback and contributions are welcome here.

Readme

Keywords

none

Package Sidebar

Install

npm i github-pinned

Weekly Downloads

3

Version

2.2.0

License

ISC

Unpacked Size

5.55 kB

Total Files

7

Last publish

Collaborators

  • kotiasv