forked from mimemagicrb/mimemagic
-
Notifications
You must be signed in to change notification settings - Fork 0
Mime type detection in ruby via file extension or file content
chrugail/mimemagic
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
MimeMagic is a library to detect the mime type of a file by extension or by content. Usage ===== require 'mimemagic' MimeMagic.by_extension('html').text? MimeMagic.by_extension('.html').child_of? 'text/plain' MimeMagic.by_path('filename.txt') MimeMagic.by_magic(File.open('test.html')) etc... Authors ======= Daniel Mendler
About
Mime type detection in ruby via file extension or file content
Resources
Stars
Watchers
Forks
Packages 0
No packages published