Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 11 days 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 (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-07-06T19:39:27.000Z (over 3 years ago)
- Last Synced: 2024-06-21T09:59:53.117Z (8 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
[![Go Report Card](https://goreportcard.com/badge/github.com/dsaouda/go-mimetype-cli)](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.