New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fubuki

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fubuki

Github GQL API Wraper

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Fubuki

Github GraphQL API Client

TypeScript NodeJs Fubuki

This package refers the following:

- Github GraphQL API

Generate Github Acess Token Here

Install

npm install --save fubuki

Usage

const { GithubClient } = require('fubuki')
// import { GithubClient } from 'fubuki'

const fubuki = new GithubClient(github_accessToken)

Get a user

const data = await fubuki.getUser('alensaito1')

console.log(data) /* {
    name: 'Alen Yohannan'
    login: 'alensaito1'
    pullRequests: {
        totalCount: 1400
    }...*/

Get a Repository

const data = await fubuki.getRepository({
    owner: 'alensaito1',
    repository: 'fubuki'
})

console.log(data) /* {
    description: 'Github GQL API Client'
    forks: {
         totalCount: 0
    }...*/

Get the contributions calender of a user

const data = await fubuki.getContributionsCalendar('alensaito1')

console.log(data) /*{
    weeks: {
        [contributionDays: [{
            color: '#ebedf0'
            contributionCount: 9
            contributionLevel:'FIRST_QUARTILE'
            date: '2021-07-13'
        }...]
    }...]
}*/

Keywords

github

FAQs

Package last updated on 14 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts