Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/isakhauge/mimeish
- Owner: isakhauge
- License: mit
- Created: 2023-09-05T09:58:51.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T08:05:25.000Z (about 1 year ago)
- Last Synced: 2024-08-10T23:23:34.129Z (3 months ago)
- Topics: browser, ext, extension, file-extension, json, mime, mime-type, mime-types, vanilla-javascript, vanilla-js
- Language: HTML
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```