easy-mime
v0.0.1
Published
Small package to help search the MIME types and its extensions.
Downloads
8
Maintainers
Readme
easy-csv
Small JavaScript library to help the conversion between CSV string and 2D array.
Install
Copy and import the following file:
Usage
Get MIME types
import MIME from "/src/mime.js";
MIME.getMIMETypes("jpg"); // ["image/jpeg"]
MIME.getMIMEType("jpg"); // "image/jpeg"Get extension
import MIME from "/src/mime.js";
MIME.getExtTypes("image/jpeg"); // ["jpeg", "jpg", "jpe"]