For example:
 

Recent

    Popular

    Largest

      How it works

      Under the hood is scc tool, a fast and accurate code counter that supports over 300 languages and multiple output formats. We are grateful to the developers of scc for creating such a powerful and reliable tool. You can learn more about scc and its features on its GitHub page.

      You can also use this service from terminal browsers, such as lynx, or as an API, by sending a request with curl and getting a human-readable response.

      How to use curl

      curl is a command-line utility that allows you to send requests to an API. To send a request with curl to this service, you need to use the following syntax:

      curl https://cloc.info/[git_host]/[git_owner]/[git_repo]

      where [git_host] is the hosting platform for git, [git_owner] is the owner of the repository and [git_repo] is the name of the repository.

      Example

      If you want to count lines of code for the repository https://gthub.com/intel/tinycrypt, just add to https://cloc.info/ rest part of url github.com/intel/tinycrypt

      $ curl https://cloc.info/github.com/intel/tinycrypt
      
      -------------------------------------------------------------------------------
      Language                 Files     Lines   Blanks  Comments     Code Complexity
      -------------------------------------------------------------------------------
      C                           27     17138     1463      1749    13926        964
      C Header                    17      2695      256      1912      527         11
      Makefile                     4       162       35        36       91          0
      License                      1        61       15         0       46          0
      ReStructuredText             1       352      106         0      246          0
      gitignore                    1         5        0         0        5          0
      -------------------------------------------------------------------------------
      Total                       51     20413     1875      3697    14841        975
      -------------------------------------------------------------------------------
      Estimated Cost to Develop (organic) $458,808
      Estimated Schedule Effort (organic) 10.23 months
      Estimated People Required (organic) 3.98
      -------------------------------------------------------------------------------
      Processed 717583 bytes, 0.718 megabytes (SI)
      -------------------------------------------------------------------------------

      This command will return a table with the number of lines of code for each programming language in the repository, as well as some metrics, such as the estimated cost of development, the estimated time of completion, and the estimated number of people required.

      You can use the same syntax for any other git platform, such as gitlab.com or bitbucket.org, just by replacing [git_host] with the corresponding host.

      Feedback

      If you have any suggestions or questions, please feel free to open issue on GitHub repository. I would appreciate your feedback.