Project

arcana

0.0
No release in over a year
file/libmagic based mime sniffing in pure Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

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