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
- Host: GitHub
- URL: https://github.com/dresende/file-command
- Owner: dresende
- License: mit
- Created: 2024-06-07T08:24:04.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-07T08:44:08.000Z (over 1 year ago)
- Last Synced: 2025-03-27T06:26:51.571Z (10 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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"));
```