1.0.1 • Published 7 years ago
mimetype-magic v1.0.1
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 => {
...
});