# fubuki

> Github GQL API Wraper

Latest version **1.1.0** (published 2021-07-14) · MIT license · 4 weekly downloads

## Install

```sh
npm install fubuki
pnpm add fubuki
yarn add fubuki
bun add fubuki
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-07-14 |
| First published | 2021-07-13 |
| Weekly downloads | 4 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 24.2 KB |
| Known vulnerabilities | 0 (+23 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Alen Yohannan |
| Maintainers | alensaito1 |
| Keywords | github |

## Links

- npm: https://www.npmjs.com/package/fubuki
- Repository: https://github.com/alensaito1/fubuki
- Homepage: https://github.com/alensaito1/fubuki#readme
- Issues: https://github.com/alensaito1/fubuki/issues
- npm.io page: https://npm.io/package/fubuki

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.21.1
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13

## Recent versions

- 1.1.0 (latest) — 2021-07-14
- 1.0.4 — 2021-07-13
- 1.0.3 — 2021-07-13
- 1.0.2 — 2021-07-13
- 1.0.1 — 2021-07-13
- 1.0.0 — 2021-07-13

## README

# Fubuki
<img src="https://images.squarespace-cdn.com/content/v1/5ac8997aaa49a16d3b6dfe3a/1619053326745-M9PXMA5534IJJJXGF67B/Shirakami+Fubuki.png?format=200" align=right />

## Github GraphQL API Client

[![TypeScript](https://img.shields.io/badge/TypeScript-007ACC?style=for-the-badge&logo=typescript&logoColor=white)](https://www.typescriptlang.org/) ![NodeJs](https://img.shields.io/badge/Node.js-43853D?style=for-the-badge&logo=node.js&logoColor=white)
[![Fubuki](https://nodei.co/npm/fubuki.png)](https://www.npmjs.com/package/fubuki)

### This package refers the following:
### - [Github GraphQL API](https://developer.github.com/v4/)

### Generate Github Acess Token [Here](https://github.com/settings/tokens)

## Install
```
npm install --save fubuki
```
## Usage
```js
const { GithubClient } = require('fubuki')
// import { GithubClient } from 'fubuki'

const fubuki = new GithubClient(github_accessToken)
```

### Get a user
```js
const data = await fubuki.getUser('alensaito1')

console.log(data) /* {
    name: 'Alen Yohannan'
    login: 'alensaito1'
    pullRequests: {
        totalCount: 1400
    }...*/
```
### Get a Repository 
```js
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
```js
const data = await fubuki.getContributionsCalendar('alensaito1')

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

---
_Source: https://npm.io/package/fubuki · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
