https://github.com/dsaouda/go-mimetype-cli
Simple way to check a file's type by looking at bytes
https://github.com/dsaouda/go-mimetype-cli
files golang magicbytes mimetype
Last synced: 3 months ago
JSON representation
Simple way to check a file's type by looking at bytes
- Host: GitHub
- URL: https://github.com/dsaouda/go-mimetype-cli
- Owner: dsaouda
- License: apache-2.0
- Created: 2019-07-02T18:24:41.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T19:39:27.000Z (almost 4 years ago)
- Last Synced: 2025-01-27T05:52:12.239Z (4 months ago)
- Topics: files, golang, magicbytes, mimetype
- Language: Go
- Homepage:
- Size: 1.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://goreportcard.com/report/github.com/dsaouda/go-mimetype-cli)
# go-mimetype-cli
Cli to project github.com/gabriel-vasile/mimetype## Usage
```bash
>> go-mimetype-cli.exe -file README.md`
>> {"mime":"text/plain; charset=utf-8","extension":".txt"}
```## Motivation
Simple way to check a file's type by looking at bytes. On linux you will prefer to use the file command. On windows this cli can be an option.