anzerr / file.type

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);
})

About

License:MIT License


Languages

Language:JavaScript 100.0%