Opam Package magic-mime.1.1.3

Package info

opam-namemagic-mime
opam-version1.1.3
synopsisMap filenames to common MIME types
description 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"
authors
  • Anil Madhavapeddy
  • Maxence Guesdon
homepagehttps://github.com/mirage/ocaml-magic-mime
licenseISC
changes-fileCHANGES.md
license-fileLICENSE.md
readme-fileREADME.md
deps (2)
revdeps (7)
metas (1)
libraries (1)

Package modules

Package sources

magic-mime

Package files

lib/magic-mime/opam
lib/magic-mime/mime_types.mli
lib/magic-mime/mime_types.ml
lib/magic-mime/mime_types.cmx
lib/magic-mime/mime_types.cmti
lib/magic-mime/mime_types.cmt
lib/magic-mime/mime_types.cmi
lib/magic-mime/magic_mime_library.cmxs
lib/magic-mime/magic_mime_library.cmxa
lib/magic-mime/magic_mime_library.cma
lib/magic-mime/magic_mime_library.a
lib/magic-mime/magic_mime.mli
lib/magic-mime/magic_mime.ml
lib/magic-mime/magic_mime.cmx
lib/magic-mime/magic_mime.cmti
lib/magic-mime/magic_mime.cmt
lib/magic-mime/magic_mime.cmi
lib/magic-mime/dune-package
lib/magic-mime/META
lib/magic-mime
doc/magic-mime/README.md
doc/magic-mime/LICENSE.md
doc/magic-mime/CHANGES.md
doc/magic-mime