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 days39,778
Downloads1,081,353
Analytics install events (30 days)5,827
Downloads / install events (30 days)6.8×

Source: GitHub Packages, fetched 2026-12-03T00:58:53Z. Analytics dates: 2026-11-03 to 2026-12-03. 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
Installs5,8199,30840,206
Installs (--HEAD)81476
Installs on Request5,8189,30640,202
Installs on Request (--HEAD)81476
Build Errors14