nagusamecs/LineHook
Dynamic line & character count badges for your GitHub projects. Display live code statistics anywhere!
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Maintainedlast commit Dec 18, 2025
- License
- MIT
Pinned Snippet
uses: nagusamecs/linehook@1a63d91d9a9d58ddbe912c6d0d86be75fe99f391 # v1.0.5tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| gist_id | The ID of the gist to update with line count data | yes | — |
| gist_token | GitHub token with gist scope for updating the gist | yes | — |
| directories | Comma-separated list of directories to scan (default: entire repo) | no | . |
| extensions | Comma-separated list of file extensions to include (e.g., .js,.py,.ts). Leave empty for all files | no | "" |
| exclude_dirs | Comma-separated directories to exclude | no | node_modules,.git,vendor,dist,build,__pycache__,.venv,venv,.next,.nuxt,coverage,.nyc_output |
| exclude_files | Comma-separated file patterns to exclude | no | package-lock.json,yarn.lock,pnpm-lock.yaml,*.min.js,*.min.css,*.map |
| count_blank_lines | Whether to count blank lines (true/false) | no | true |
| badge_label | Custom label for the badge | no | lines of code |
| badge_color | Badge color (hex without # or named color) | no | blue |
| badge_style | Badge style (flat, flat-square, plastic, for-the-badge, social) | no | flat |
| auto_pull | Pull before pushing to avoid conflicts with out-of-sync SVGs (true/false) | no | true |
Outputs
| name | description |
|---|---|
| lines | Total line count |
| characters | Total character count |
| files | Total file count |
| blank_lines | Total blank line count |
| code_lines | Non-blank line count |