display github repository size in javascript code example

Example 1: how big is my github repo

You can view your Github repository size here:
https://github.com/settings/repositories

Example 2: github get repo size

If you own the repository, you can find the exact size by opening your Account 
Settings -> Repositories (https://github.com/settings/repositories), and the 
repository size is displayed next to its designation.

If you do not own the repository, you can fork it and then check the in the 
same place.