Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (19 sloc) 0.639 kb
A Perl 6 library that reads the mime.types file as used by
many Linux distributions, and web servers, and returns an object
that can be queried by either type or extension.
use MIME::Types;
my $mime ="/etc/mime.types");
my $type = $mime.type('txt'); ## Returns: 'text/plain';
my @known_extensions = $mime.extensions('application/');
## Returns: [ 'xls', 'xlb', 'xlt' ]
An example mime.types is included in the doc/ directory, and is used by
the tests in t/.
= License =
Artistic 2.0=
= Author =
Timothy Totten
Jump to Line
Something went wrong with that request. Please try again.