mime v0.7

0

Monthly downloads

0th

Percentile

Map Filenames to MIME Types

Guesses the MIME type from a filename extension using the data derived from /etc/mime.types in UNIX-type systems.

Readme

mime

Build Status Downloads from the RStudio CRAN mirror

This is an R package for mapping filename extensions to MIME types, based on the data derived from /etc/mime.types.

# installation
install.packages('mime')

library(mime)
guess_type(c('a/b/c.html', 'd.pdf', 'e.odt', 'foo.docx', 'tex'))
# [1] "text/html"                                                              
# [2] "application/pdf"                                                        
# [3] "application/vnd.oasis.opendocument.text"                                
# [4] "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
# [5] "text/x-tex"

Functions in mime

Name Description
guess_type Guess the MIME types from filenames
mimemap Tables for mapping filename extensions to MIME types
parse_multipart Parse multipart form data
No Results!

Last month downloads

Details

Type Package
License GPL
URL https://github.com/yihui/mime
BugReports https://github.com/yihui/mime/issues
LazyData TRUE
RoxygenNote 6.1.0
Encoding UTF-8
NeedsCompilation yes
Packaged 2019-06-11 19:49:18 UTC; yihui
Repository CRAN
Date/Publication 2019-06-11 20:10:03 UTC
imports tools
Contributors Jeffrey Horner, Beilei Bian

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/mime)](http://www.rdocumentation.org/packages/mime)