package magic-mime

  1. Overview
  2. Docs
Map filenames to common MIME types

Install

Dune Dependency

Authors

Maintainers

Sources

magic-mime-v1.2.0.tbz
sha256=f121b67500f8dd97e2fc9fd5d01c7325e4c84bc5c0237442779fbd6fa20694f5
sha512=f55e39b11e145f97eaec6796cb99bdca3ac62130995fc36f82fdd097ab5ed6ff9130c671546b76b7c21777284977c02f6b6f74d5549a367481210342708886da

doc/magic-mime/Magic_mime/index.html

Module Magic_mimeSource

Convert file extensions to MIME types

Sourceval lookup : string -> string

lookup filename will return a MIME type for the full filename supplied by examining its extension and look it up by using Mime_types.map_extension or Mime_Types.map_file if there is no file extension present.

OCaml

Innovation. Community. Security.