1.2.14 • Published 2 years ago
@pascaliske/mime-types v1.2.14
Simple wrapper for node-mime
Installation
To install the module use the following commands:
$ yarn add @pascaliske/mime-types
Usage
tl:dr;
import { getType, getExtension } from '@pascaliske/mime-types'
getType('text') // => 'text/plain'
getExtension('text/plain') // => 'txt'
For more information go to the node-mime package.
License
MIT © Pascal Iske