1.0.0 • Published 8 years ago

stafo v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

stafo

Get the total number of stars and forks on a particular github repository.

Build Status

Install

$ npm install --save stafo

Usage

  • stars :
'use strict';

const stafo = require('stafo');

stafo.stars('facebook/react').then(gitStars => {
	console.log(gitStars);
	// => 44,022
});
  • forks :
'use strict';

const stafo = require('stafo');

stafo.forks('facebook/react').then(gitForks => {
	console.log(gitForks);
	// => 7,584
});

API

stafo.repo('username/repository')

  • Returns a promise for an array of defined repository property with current stars and forks.

stafo.stars('username/repository')

  • Returns a promise with total stars for the specified repository.

stafo.forks('username/repository')

  • Returns a promise with total forks for the specified repository.

username/repository

TYPE : string

License

MIT © Rishi Giri