Skip to content

tkf/MIMEFileExtensions.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MIMEFileExtensions

Lookup MIME types from a file extension and vice versa.

This is based on the mapping in Apache HTTP server project: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types

Example

julia> using MIMEFileExtensions

julia> fileexts_from_mime("image/jpeg")
3-element Vector{Symbol}:
 :jpeg
 :jpg
 :jpe

julia> mimes_from_fileext("txt")
1-element Vector{Symbol}:
 Symbol("text/plain")

See also

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages