mime2ext
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Mime2Ext

Convert a mime type to a file extension. It works only with popular mime types and it's super lightweight.

This library is designed to only support the ~300 popular mime types listed here.

Install

npm install --save mime2ext

Usage

import mime2ext from 'mime2ext';

mime2ext ( 'audio/mp3' ); // => 'mp3'

License

MIT © Fabio Spampinato

Package Sidebar

Install

npm i mime2ext

Weekly Downloads

663

Version

2.0.0

License

none

Unpacked Size

11.7 kB

Total Files

10

Last publish

Collaborators

  • fabiospampinato