Skip to content

anzerr/file.type

Repository files navigation

Intro

get mime type for a file using 'minetype' and 'file' with a fallback if not present

Install

npm install --save git+https://git@github.com/anzerr/file.type.git

Example

const fileType = require('file.type');

fileType('./README.md').then((res) => {
    console.log(res);
})