mimetype-magic
v1.0.1
Published
mime type detection using linux "file -bE --mime-type". If "file -bE --mime-type" gives out "text/plain", then use "mime.getType" instead.
Downloads
1
Readme
mimetype-magic
Use command file -bE --mime-type
to detect mime type.
If file gives out text/plain
,
then use mime.getType
.
const magic = require('mimetype-magic');
magic(path, type => {
...
});