Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

mimemap

Tables for mapping filename extensions to MIME types


Description

The data mimemap is a named character vector that stores the filename extensions and the corresponding MIME types, e.g. c(html = 'text/html', pdf = 'application/pdf', ...). The character vector mimeextra stores some additional types that we know, such as Markdown files (‘.md’), or R scripts (‘.R’).

Source

The file ‘/etc/mime.types’ on Debian.

Examples

str(as.list(mimemap))
mimemap["pdf"]
mimemap[c("html", "js", "css")]
# additional MIME types (not exported)
mime:::mimeextra

mime

Map Filenames to MIME Types

v0.10
GPL
Authors
Yihui Xie [aut, cre] (<https://orcid.org/0000-0003-0645-5666>), Jeffrey Horner [ctb], Beilei Bian [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.