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:

macOS on
Apple Silicon
sequoia
sonoma
ventura
macOS on
Intel
sonoma
ventura
Linux ARM64
x86_64

Current versions:

stable 5.46

Analytics:

Installs (30 days)
libmagic 4,229
libmagic --HEAD 4
Installs on Request (30 days)
libmagic 2,226
libmagic --HEAD 4
Build Errors (30 days)
libmagic 0
Installs (90 days)
libmagic 13,377
libmagic --HEAD 12
Installs on Request (90 days)
libmagic 7,071
libmagic --HEAD 12
Installs (365 days)
libmagic 59,497
libmagic --HEAD 64
Installs on Request (365 days)
libmagic 31,521
libmagic --HEAD 64