file-command
v0.1.0
Published
Node wrapper to the POSIX file command
Readme
Node.js file command wrapper
This is a simple wrapper to the POSIX file command, that returns the MIME for a path.
import { mime } from "file-command";
// image/svg+xml
console.log(await mime("/path/to/android.svg"));