Extra Credit

mimemagic

Fast mime detection by extension or content (Uses freedesktop.org.xml shared-mime-info database)

$gem install mimemagic

Official docs outline

Extra Credit builds an outline of mimemagic's docs the first time your work uses it. Until then, start at the official documentation.

All 3,925