An open API service indexing awesome lists of open source software.

https://github.com/dresende/file-command

Node.js file command wrapper
https://github.com/dresende/file-command

Last synced: 7 months ago
JSON representation

Node.js file command wrapper

Awesome Lists containing this project

README

          

## Node.js `file` command wrapper

This is a simple wrapper to the POSIX `file` command, that returns the MIME for a path.

```js
import { mime } from "file-command";

// image/svg+xml
console.log(await mime("/path/to/android.svg"));
```