Registry / utility / mini-mime

mini-mime

JSON →
library1.1.5rbrubygemsunverified

A minimal mime type library for Ruby.

gem install mini_mime
INSTALL
IMPORT
SIG · MINI-MIME
M
mini-mime
utilityrubyv1.1.5
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.

MiniMime
require 'mini_mime'

Lookup MIME types by extension or filename.

require 'mini_mime' # Lookup MIME type by extension mime = MiniMime.lookup_by_extension('txt') puts mime.content_type # => "text/plain" # Lookup by file path mime = MiniMime.lookup_by_filename('index.html') puts mime.content_type # => "text/html"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.5latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Bingbot
1
Resources
mini-mime — gem install mini-mime · libregistry