mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
|
<pkgmetadata>
|
|
<maintainer type="person">
|
|
<email>lssndrbarbieri@gmail.com</email>
|
|
<name>Alessandro Barbieri</name>
|
|
</maintainer>
|
|
<longdescription lang="en">This library contains a database of MIME types that maps filename extensions
|
|
into MIME types suitable for use in many Internet protocols such as HTTP or
|
|
e-mail. It is generated from the `mime.types` file found in Unix systems, but
|
|
has no dependency on a filesystem since it includes the contents of the
|
|
database as an ML datastructure.
|
|
|
|
For example, here's how to lookup MIME types in the [utop] REPL:
|
|
|
|
#require "magic-mime";;
|
|
Magic_mime.lookup "/foo/bar.txt";;
|
|
- : bytes = "text/plain"
|
|
Magic_mime.lookup "bar.css";;
|
|
- : bytes = "text/css"</longdescription>
|
|
<upstream>
|
|
<doc>https://mirage.github.io/ocaml-magic-mime/</doc>
|
|
<bugs-to>https://github.com/mirage/ocaml-magic-mime/issues</bugs-to>
|
|
<remote-id type="github">mirage/ocaml-magic-mime</remote-id>
|
|
<maintainer>
|
|
<name>Anil Madhavapeddy</name>
|
|
<email>anil@recoil.org</email>
|
|
</maintainer>
|
|
</upstream>
|
|
</pkgmetadata>
|