Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Library for parsing mime.types files and querying the results.
Perl6 Perl
branch: master

Merge branch 'master' of https://github.com/retupmoca/perl6-mime-types

Conflicts:
	lib/MIME/Types.pm6
latest commit b970707097
Timothy Totten authored
Failed to load latest commit information.
doc First release
lib/MIME
t First release
.gitignore First release
META.info
README First release

README

MIME::Types
------------
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.

Example:

  use MIME::Types;
  my $mime = MIME::Types.new("/etc/mime.types");
  my $type = $mime.type('txt'); ## Returns: 'text/plain';
  my @known_extensions = $mime.extensions('application/vnd.ms-excel');
  ## 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 
http://huri.net/
https://github.com/supernovus/
Something went wrong with that request. Please try again.