libmagic

Install command:
brew install libmagic

Implementation of the file(1) command

https://www.darwinsys.com/file/

License: BSD-2-Clause-Darwin AND BSD-2-Clause AND LicenseRef-Homebrew-public-domain

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

Formula code: libmagic.rb on GitHub

Bottle (binary package) installation support provided for:

Apple Silicon sequoia
sonoma
ventura
monterey
big sur
Intel sonoma
ventura
monterey
big sur
64-bit linux

Current versions:

stable 5.45

Analytics:

Installs (30 days)
libmagic 3,998
libmagic --HEAD 4
Installs on Request (30 days)
libmagic 1,858
libmagic --HEAD 4
Build Errors (30 days)
libmagic 8
Installs (90 days)
libmagic 10,825
libmagic --HEAD 14
Installs on Request (90 days)
libmagic 5,492
libmagic --HEAD 14
Installs (365 days)
libmagic 51,258
libmagic --HEAD 45
Installs on Request (365 days)
libmagic 27,238
libmagic --HEAD 45
Fork me on GitHub