nagusamecs/LineHook

Dynamic line & character count badges for your GitHub projects. Display live code statistics anywhere!

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Dec 18, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: nagusamecs/linehook@1a63d91d9a9d58ddbe912c6d0d86be75fe99f391 # v1.0.5

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
gist_idThe ID of the gist to update with line count datayes
gist_tokenGitHub token with gist scope for updating the gistyes
directoriesComma-separated list of directories to scan (default: entire repo)no.
extensionsComma-separated list of file extensions to include (e.g., .js,.py,.ts). Leave empty for all filesno""
exclude_dirsComma-separated directories to excludenonode_modules,.git,vendor,dist,build,__pycache__,.venv,venv,.next,.nuxt,coverage,.nyc_output
exclude_filesComma-separated file patterns to excludenopackage-lock.json,yarn.lock,pnpm-lock.yaml,*.min.js,*.min.css,*.map
count_blank_linesWhether to count blank lines (true/false)notrue
badge_labelCustom label for the badgenolines of code
badge_colorBadge color (hex without # or named color)noblue
badge_styleBadge style (flat, flat-square, plastic, for-the-badge, social)noflat
auto_pullPull before pushing to avoid conflicts with out-of-sync SVGs (true/false)notrue
namedescription
linesTotal line count
charactersTotal character count
filesTotal file count
blank_linesTotal blank line count
code_linesNon-blank line count