package magic-mime

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

Install

Dune Dependency

Authors

Maintainers

Sources

magic-mime-v1.1.2.tbz
sha256=0c590bbc747531b56d392ee8f063d879df1e2026ba2dfa2d1bc98c9a9acb04eb
sha512=8264db78adc2c75b8adabc23c26ad34eab98383bd3a8f2068f2236ff3425d653c0238fbd7361e55a3d70d843413ef8671b6e97293074b4d3a1e300628d5292ab

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.