javaparser / javaparser.github.io

1 stars 2 forks source link

Auto update repo stats #3

Open MysterAitch opened 4 years ago

MysterAitch commented 4 years ago

https://api.github.com/repos/javaparser/javaparser

It's easy enough to get the star and fork count from the api -- perhaps this can be used to update the count dynamically.

fetch("https://api.github.com/repos/javaparser/javaparser")
  .then((response) => response.json())
  .then(x => {
      console.info(x);
      console.info('stargazers_count', x.stargazers_count);
      console.info('forks_count', x.forks_count);
  })