Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Count lines of code in a GitHub repository

License

NotificationsYou must be signed in to change notification settings

pajecawav/ghloc-web

Repository files navigation

build statuslines count

Awebsite to display GitHub repository info:

  • Total repo size
  • Repo health calculated by GitHub (README.md, license, etc)
  • Repo commit activity for the past year
  • Bundle size of annpm package
  • Total lines of code by file extension (provided byghloc)

Screenshot

Addons

You can use auser script to add a direct link to repo's ghloc page. Can be installed withTampermonkey.

AlsoFirefox addon is available. It provides LOCs stats dropdown directly on project's GitHub page and a direct link to repo's ghloc page. Source code availablehere.

Badges

You can useshields.io to embed badges into your README. Navigate to theendpoint badge docs and enter the following to theurlfield:

https://ghloc.vercel.app/api/OWNER/REPO/badge

Then you can preview your badge by clicking "Execute" and copy the full badge URL generated by shields.io which will look something like this:

https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/OWNER/REPO/badge

You can also optionally add an optionalfilter search param. For example the badge at the top ofthis README has the following URL and only counts files with.ts or.tsx extension:

https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?filter=.ts$,.tsx$

To humanize LOC count you can addformat=human to search params. So to a produce badge likelines countyou can use following URL:

https://img.shields.io/endpoint?url=https://ghloc.vercel.app/api/pajecawav/ghloc-web/badge?format=human

Development

You can start a dev server by running following commands:

git clone https://github.com/pajecawav/ghloc-web.gitcd ghloc-webpnpm installpnpm dev

Then navigate tohttp://localhost:3000


[8]ページ先頭

©2009-2025 Movatter.jp