/mime-types

Simple wrapper for node-mime package.

Primary LanguageTypeScriptMIT LicenseMIT

Simple wrapper for node-mime

npm (scoped) GitHub Tag Build Status codecov License: MIT GitHub Last Commit Awesome Badges

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