@anzerr/file.type

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

Usage no npm install needed!

<script type="module">
  import anzerrFileType from 'https://cdn.skypack.dev/@anzerr/file.type';
</script>

README

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