1.0.0 • Published 9 years ago
stafo v1.0.0
stafo
Get the total number of stars and forks on a particular github repository.
Install
$ npm install --save stafoUsage
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 starsfor the specified repository.
stafo.forks('username/repository')
- Returns a promise with
total forksfor the specified repository.
username/repository
TYPE : string
License
MIT © Rishi Giri
1.0.0
9 years ago