An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# libmagic wrapper for Zig

![Zig support](https://img.shields.io/badge/Zig-0.15.1-color?logo=zig&color=%23f3ab20)

**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`