mrmime

A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename

mmmagic

An async libmagic binding for node.js for detecting content types by data inspection