1.0.0 • Published 4 years ago
Filea
Get the mime type of a file.
Install
npm install filea
Usage
const filea = require("filea");
(async () => {
await filea("image.png")
//=> image/png
})()
API
filea(filename)
filea.sync(filename)
filename
Type: string
The file to get the mime type for.