https://github.com/ndrean/magic_zig
Tiny Zig wrapper of libmagic
https://github.com/ndrean/magic_zig
libmagic zig-library
Last synced: about 1 month ago
JSON representation
Tiny Zig wrapper of libmagic
- Host: GitHub
- URL: https://github.com/ndrean/magic_zig
- Owner: ndrean
- License: mit
- Created: 2025-10-03T17:13:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-10-03T17:51:29.000Z (10 months ago)
- Last Synced: 2025-10-03T19:25:59.494Z (10 months ago)
- Topics: libmagic, zig-library
- Language: Zig
- Homepage:
- Size: 445 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# libmagic wrapper for Zig

**building** a very thin wrapper. I need to check if the uploaded files are really images.
This project uses [libmagic](https://man7.org/linux/man-pages/man3/libmagic.3.html#LIBRARY) from the file project.
Copyright (c) Ian F. Darwin 1986-1995.
License: BSD-2-Clause (see LICENSE-libmagic).
## Requirements
`libmagic` must be installed:
- macOS: `brew install libmagic`
- Ubuntu/Debian: `apt install libmagic-dev`
- Fedora: `dnf install file-devel`