crystal-community / crystal-libraries-needed

A list of libraries that are needed or wanted for the Crystal-Language
141 stars 4 forks source link

Suggestion: port gem mimemagic from Ruby for significant (and fully platform agnostic) MIME type coverage #106

Open mistergibson opened 5 years ago

mistergibson commented 5 years ago

I notice the unix and windows mime code is rather skeletal and incomplete. I want to suggest you simply port the mimemagic gem from Ruby to save time. It is very comprehensive in its coverage of mime types, has a byte-stream recognizer, and does filename extension recognition as well. In my Ruby code I have come to rely upon it and it has helped a lot.

Cheers,

G. Gibson