these steps have been done in the yihui/litedown/site action now
This is an R package for mapping filename extensions to MIME types, based on the data derived from /etc/mime.types.
/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"
根据文件扩展名猜测MIME类型
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802047560号
mime
This is an R package for mapping filename extensions to MIME types, based on the data derived from
/etc/mime.types.