file-command

0.1.0 • Public • Published

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"));

Readme

Keywords

Package Sidebar

Install

npm i file-command

Weekly Downloads

31

Version

0.1.0

License

MIT

Unpacked Size

2.76 kB

Total Files

7

Last publish

Collaborators

  • dresende