Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/isakhauge/mimeish

Browser Compatible MIME Toolkit
https://github.com/isakhauge/mimeish

browser ext extension file-extension json mime mime-type mime-types vanilla-javascript vanilla-js

Last synced: about 1 month ago
JSON representation

Browser Compatible MIME Toolkit

Awesome Lists containing this project

README

        

# mimeish

> Browser Compatible MIME Toolkit

# Geting started

## Lookup MIME type

```js
import { lookup } from 'mimeish'
const filePath = lookup('file.txt')
lookup.mime('file.txt') // text/plain
```

## Lookup extension

```js
import { lookup } from 'mimeish'
const mimeType = 'text/plain'
lookup.extension(mimeType) // txt
```