Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gitumber

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gitumber

scraps any public github repo for its latest stats

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

gitumber

Scraps any public repo's pulse page for it's latest stats

###Install

npm install gitumber

###Usage

var gitumber = require('gitumber');

var opts = {
	'repo': 'nodejs/node',
	'time_windows': 'daily'
};

gitumber.get_data(opts, function(data, err){
	if(err) {
		console.error(err);
	} else {
		//do stuff with data
	}
});

###Options The options object MUST contain a 'repo' property and an OPTINAL 'time_windows' property. If the 'time_windows' is not defined, it will be interpreted as 'weekly'.

Other supported time_windows:

  • 'daily'
  • 'halfweekly'
  • 'weekly'
  • 'monthly'

Note: If the 'time_windows' property is not one of the option supported, it will default to 'time_windows'

ex:

var opts = {
	'repo': 'nodejs/node',
	'time_windows': 'daily'
};

###Data The data returned if formated as followed:

{ 
	'proposed-pull-requests': {
		'#<nr>': '<title>',
		...
	},
  	'merged-pull-requests': {
		'#<nr>': '<title>',
		...
  	},
  	'closed-issues': {
 		'#<nr>': '<title>',
		...
  	},
  	'new-issues': {
 		'#<nr>': '<title>',
		...
  	} 
}

###Contribuitions Go ahead, fork the project and send a pull request with your contribuition.

Keywords

FAQs

Package last updated on 28 Oct 2015

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