gocloc

Fast line-of-code counter written in Go with multi-language support

brewmacoslinux
Try with needOr install directly
Source

About

Little fast LoC counter

Commands

gocloc

Examples

Count lines of code in current directory$ gocloc .
Count lines of code for specific file types in a project$ gocloc --include-lang=Go,JavaScript /path/to/project
Display output in JSON format for parsing$ gocloc --output-type=json /path/to/project