Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Get
MIME type
of a file by it’s extension
Install
npm install mime-type-check
Usage
const getMimeType = require('mime-type-check');
getMimeType('./images/profile.svg');
//=> 'image/svg+xml'
getMimeType('https://rocktim.xyz/images/profile.svg');
//=> 'image/svg+xml'
API
getMimeType(string)
Get MIME type
of a file by it’s extension
Support