Skip to content

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

License

Notifications You must be signed in to change notification settings

fabiospampinato/mime2ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published