Coder Social home page Coder Social logo

sammyrobensparadise / github-contributions-counter Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 2.0 13.45 MB

A simple Javascript API that will return the public github contributions history for a user based on a universal function

Home Page: https://www.npmjs.com/package/github-contributions-counter

License: MIT License

JavaScript 36.05% TypeScript 63.95%
proxy contribution-history javascript-api github githubcontributions contributions api javascript npm stable

github-contributions-counter's Introduction

github-contributions-counter

A simple Javascript API that will return the public Github contributions history for a user based on a universal function

github-contributions-counter


version


A Quick Note ๐Ÿ‘€

This is a simple REST API wrapper around GitHubs API/V4 contributions graphQL api. Prior to the implementation of the V4 api this package scraped contribution data from GitHub profiles.

Getting Started

Install

Via npm

npm i github-contributions-counter

Via yarn

yarn add github-contributions-counter

Demo

Demo

Usage

import { getGithubContributions } from 'github-contributions-counter'

getGithubContributions({
  username: 'github_username',
  token: 'github_token' // secret
}).then((r) => {
  console.log(r)
})

API

Interface

Parameter Description Status Type
username A valid GitHub username. Organization names are not currently supported Required string
token A valid GitHub PAT with read:usr permissions. You can find instructions on how to generate a PAT here. Required string

Issue Tracker

Issues

Contributing

Contributions are welcomed and encouraged! Refer to Contribution Guidelines

Development

  1. Clone
git clone [email protected]:SammyRobensParadise/github-contributions-counter.git
  1. Install
npm install
# or
yarn install
  1. Develop ๐Ÿ’ป

  2. Build using rollup.js

npm run build
# or
yarn run build

Info

Author: Sammy Robens-Paradise. sammy.world

github-contributions-counter's People

Contributors

dependabot[bot] avatar sammyrobensparadise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.