0.1.0 • Published 1 year ago
file-command v0.1.0
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"));
0.1.0
1 year ago