Skip to content

isakhauge/mimeish

Repository files navigation

mimeish

Browser Compatible MIME Toolkit

Geting started

Lookup MIME type

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

Lookup extension

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