cloc

Install command:
brew install cloc

Statistics utility to count lines of code

https://github.com/AlDanial/cloc/

License: GPL-2.0-or-later

Development: Pull requests

Formula JSON API: /api/formula/cloc.json

Formula code: cloc.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 2.12
head ⚡️ HEAD

Uses from macOS: perl

Binaries: cloc

GitHub Packages downloads:

Last 30 days17,589
Downloads1,047,533
Analytics install events (30 days)2,116
Downloads / install events (30 days)8.3×

Source: GitHub Packages, fetched 2026-11-13T00:54:26Z. Analytics dates: 2026-10-14 to 2026-11-13. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs2,1115,63836,756
Installs (--HEAD)51073
Installs on Request2,1105,63736,751
Installs on Request (--HEAD)51073
Build Errors6