Git Product home page Git Product logo

hacktoberfeststats's Introduction

HacktoberfestStats npm version License:MIT

This Module can be used to retrieve all information about a given GitHub user within Hacktoberfest's event.

Dependencies:

  • Request
  • Underscore
  • Meow

Installation:

npm install hacktoberfeststats

Usage:

CLI

npx hacktoberfeststats MatejMecka # current year
npx hacktoberfeststats MatejMecka -y 2018
npx hacktoberfeststats MatejMecka --year 2018

API

const { getHacktoberfestStats } = require('../main.js')	

// Using Callbacks
getHacktoberfestStats("MatejMecka", "2018", function(hacktoberfestStats,error){
	if (error) {
		console.log(error.message)
	} else {
		console.log(hacktoberfestStats)
	}
})

// Using Promises
getHacktoberfestStats('MatejMecka', '2018').then(stats => {
    console.log(stats)
})

Options:

The callback function receives an object that contains these properties:

mainStats:

  • Name: The person’s first name or username
  • Completed: Is it Completed or Not. Returns a boolean
  • Current: Integer - Number of pull requests
  • Progress: How many pull requests a user has made: ex: 11/4
  • Contributions: Repositories where the user did pull requests
  • Required: The Number of required pull requests for that year. - Array with URL's linking to Pull Requests

hacktoberfeststats's People

Contributors

aadibajpai avatar agentender avatar ccmetz avatar dependabot[bot] avatar hanhmchau avatar jataggart avatar jeromechrist avatar martin-fink avatar matejmecka avatar maxpou avatar otacilion avatar pecfw avatar sebastiaanspeck avatar shreyasminocha avatar ziyaddin 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.