Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/micnic/mime.json

JSON list of extensions with their mime types
https://github.com/micnic/mime.json

json mime mime-types

Last synced: 2 months ago
JSON representation

JSON list of extensions with their mime types

Awesome Lists containing this project

README

        

# mime.json

[![npm version](https://img.shields.io/npm/v/mime.json.svg?logo=npm&style=flat-square)](https://www.npmjs.com/package/mime.json)
[![npm downloads](https://img.shields.io/npm/dm/mime.json.svg?style=flat-square)](https://www.npmjs.com/package/mime.json)
[![npm types](https://img.shields.io/npm/types/mime.json.svg?style=flat-square)](https://www.npmjs.com/package/mime.json)
[![license](https://img.shields.io/npm/l/mime.json.svg?style=flat-square)](https://www.npmjs.com/package/mime.json)

This is the list of file extensions with their mime types, nothing more. The list is extracted from [mime-db](https://www.npmjs.com/package/mime-db).

## Usage

```js
import mime from 'mime.json';

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