Arcana 🧙♂️
This project is an attempt to write a pure Ruby MIME type/file type sniffer using the same magic
rule database as used by file and libmagic.
Current Status
Not yet production ready
It somewhat works, but has missed implementing quite a few rules. Not yet safe to be run against arbitrary user input (can be made to infinite loop).
License
Similarly to file
, Arcana is licensed under a 2-Clause BSD License
Similar libraries
- Marcel Pure Ruby MIME type detection using a database derived from Apache Tika
- ruby-magic libmagic C bindings for Ruby