mime (version 0.7)

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).

Arguments

Examples

Run this code
# NOT RUN {
str(as.list(mimemap))
mimemap["pdf"]
mimemap[c("html", "js", "css")]
# additional MIME types (not exported)
mime:::mimeextra
# }

Run the code above in your browser using DataCamp Workspace