Library for parsing mime.types files and querying the results.
Perl 6
Switch branches/tags
Nothing to show
Latest commit c5deae4 Nov 3, 2016 @supernovus supernovus Merge pull request #6 from paultcochrane/pr/add-travis-config
Add Travis-CI configuration
Failed to load latest commit information.
doc First release Oct 7, 2011
lib/MIME Add unit declarator to class declarations May 25, 2015
t Fix tests for new Rakudo Dec 1, 2015
.travis.yml Add Travis-CI configuration Nov 1, 2016 Add mandatory "perl" META field Oct 26, 2016
README First release Oct 7, 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