Permalink
Browse files

First release

  • Loading branch information...
supernovus committed Oct 7, 2011
0 parents commit d1e8ab7abb2ebf4d24bf15ccb8d608c73a28a0fb
Showing with 906 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +26 −0 README
  3. +821 −0 doc/mime.types
  4. +39 −0 lib/MIME/Types.pm6
  5. +17 −0 t/mime.t
@@ -0,0 +1,3 @@
+Makefile
+*.swp
+blib/
26 README
@@ -0,0 +1,26 @@
+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/
Oops, something went wrong.

0 comments on commit d1e8ab7

Please sign in to comment.