Détail du package

mimetype-magic

yw6622ISC1.0.1

mime type detection using linux "file -bE --mime-type". If "file -bE --mime-type" gives out "text/plain", then use "mime.getType" instead.

mime, magic

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 => {
    ...
});
`