LuaRocks.org had a security incident in September 2026. Read the incident report.

mimetypes

A simple library for looking up the MIME types of files.

$ luarocks install mimetypes

This is a simple library for guessing a file's MIME type. It includes a (hopefully) comprehensive database of MIME types, but it allows you to create your own should you have specific requirements. It can guess types both by extension and by the complete filename.

Versions

1.1.0-21 year ago314,173 downloads
1.0.0-33 years ago29,390 downloads
1.0.0-23 years ago327,593 downloads
1.0.0-13 years ago62,878 downloads
dev-1dev1 year ago(revision: 3)139 downloads

Dependencies

lua >= 5.1

Dependency for

Aurora, cloud_storage, cloud_storage, evasive, kong-lapis, kong-plugin-google-cloud-functions, kong-plugin-google-logging, Kosmo, lapis, lua-mastodon, lua-moongo, moonmint, Nchan, octoflow, octopus, paged-markdown-3-pdf, pegasus, pegasus, pegasus-mr, pmd3.nvim, pocket_archive, resilient.sile, rest.nvim, Satelito, video_streaming, yoke, zhihu.nvim, zhihu.nvim

Manifests