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

https://github.com/devnax/getmime


https://github.com/devnax/getmime

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

## Get file mime type and extention
lightweight js library to read file mime type and extention

## Usages
```js
import {getType, getExtention} from 'getmime'

getType('jpg') // image/jpeg
getType('js') // application/javascript

getExtention('image/jpeg') // jpg
getExtention('application/javascript') // js

```