tokei

Count lines of code, comments, and blanks in source files

brewmacoslinux
Try with needOr install directly
Source

About

Program that allows you to count code, quickly

Commands

tokei

Examples

Count code statistics for current directory$ tokei
Count code in a specific directory$ tokei /path/to/project
Output results in JSON format$ tokei /path/to/project --output json