FreeBSD.software
Home/devel/p5-Media-Type-Simple

p5-Media-Type-Simple

0.31.0devel

MIME Media Types and their file extensions

Media::Type::Simple gives a simple functions for obtaining common file extensions from media types, and from obtaining media types from file extensions. It is also relaxed with respect to having multiple media types associated with a file extension, or multiple extensions associated with a media type, and it includes media types for encodings such as gzip. It is defined this way in the default data, but this does not meet your needs, then you can have it use a system file (e.g. /etc/mime.types) or custom data. By default, there is a functional interface, although you can also use an object-oriented inteface. (Different objects will not share the same data.)

$pkg install p5-Media-Type-Simple
metacpan.org/release/Media-Type-Simple
Origin
devel/p5-Media-Type-Simple
Size
37.4KiB
License
ART20
Maintainer
sunpoet@FreeBSD.org
Dependencies
4 packages
Required by
0 packages

Dependencies (4)