mime.json

JSON list of extensions with their mime types

Usage no npm install needed!

<script type="module">
  import mimeJson from 'https://cdn.skypack.dev/mime.json';
</script>

README

mime.json

npm version npm downloads npm types license

This is the list of file extensions with their mime types, nothing more. The list is extracted from mime-db.

Usage

import mime from 'mime.json';

mime['js']; // => 'application/javascript'
mime.json;  // => 'application/json'