New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github-contributions-counter

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-contributions-counter

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

  • 2.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
107
decreased by-45.41%
Maintainers
1
Weekly downloads
 
Created
Source

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

ParameterDescriptionStatusType
usernameA valid GitHub username. Organization names are not currently supportedRequiredstring
tokenA valid GitHub PAT with read:usr permissions. You can find instructions on how to generate a PAT here.Requiredstring

Issue Tracker

Issues

Contributing

Contributions are welcomed and encouraged! Refer to Contribution Guidelines

Development

  1. Clone
git clone git@github.com: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

Keywords

FAQs

Package last updated on 06 Jan 2023

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc