stafo
Get the total number of stars and forks on a particular github repository.
Install
$ npm install --save stafo
Usage
stars
:
'use strict'; const stafo = ; stafo;
forks
:
'use strict'; const stafo = ; stafo;
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