Registry / utility / mimemagic

mimemagic

JSON →
library0.4.3rbrubygemsunverified

Fast MIME detection by extension or content using freedesktop.org database.

gem install mimemagic
INSTALL
IMPORT
SIG · MIMEMAGIC
M
mimemagic
utilityrubyv0.4.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

MimeMagic
require 'mimemagic'

Detect MIME type by file extension

require 'mimemagic' MimeMagic.by_extension('.html') # => "text/html"
Debug
Known issues
breakingVersion 0.4.x changed API; `by_path` removed.
fix
Use `by_extension` or `by_magic` instead.
affects: >= 0.4.0
Upgrade
Version history
0.4.3latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
mimemagic — gem install mimemagic · libregistry