1.1.1 • Published 2 years ago

@hoooman/mimetype v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

@hoooman/mimetype

We can get the mime type of files by using this package, This package is using linux mimetype librabry.

Usage

Install the dependencies.

npm i @hoooman/mimetype

Example

const mimetype = require("@hoooman/mimetype");

mimetype.getMimetype("./test.jpeg", function(err, mimeType){
    console.log(err);
    console.log(mimeType);
})

mimetype.getMimetype("./test.jpeg")
.then(res=>console.log(res))
.catch(err=> console.log(err))
1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago