Node system-mime
Get the mimetype of a file in the xdg way.
For more info see http://standards.freedesktop.org/shared-mime-info-spec/shared-mime-info-spec-latest.html
Install
npm install system-mime
Usage
var mime = mime // 'text/plain'mime // 'application/x-compressed-tar'mime // 'application/x-tar'mime // 'text/x-makefile' mime // null mimefallback_type = 'text/plain' // (defaults to null)mime // 'text/plain' mime // fallback
TODO
Read magic data