Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Library for parsing mime.types files and querying the results.

branch: master

Added S11 provides

latest commit b9844ec4fd
Timothy Totten authored
Octocat-spinner-32 doc First release October 07, 2011
Octocat-spinner-32 lib Fixed for nom. December 06, 2011
Octocat-spinner-32 t First release October 07, 2011
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Added S11 provides February 18, 2014
Octocat-spinner-32 README First release October 07, 2011
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
Something went wrong with that request. Please try again.