stafo

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i stafo

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • rishi