https://github.com/gonejack/hsize
human readable size
https://github.com/gonejack/hsize
Last synced: about 1 month ago
JSON representation
human readable size
- Host: GitHub
- URL: https://github.com/gonejack/hsize
- Owner: gonejack
- License: gpl-3.0
- Created: 2020-11-05T02:42:07.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-09-19T08:38:30.000Z (over 3 years ago)
- Last Synced: 2024-06-20T00:32:49.930Z (over 1 year ago)
- Language: Go
- Size: 32.2 KB
- Stars: 7
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hsize
Command line tool for human readable size


[](LICENSE)
## Installation
```
go install github.com/gonejack/hsize@latest
```
## Usage
by arguments
```
> hsize 123 383764
123B
374.76KB
```
by stdin
```
> echo 19129219219129119 | hsize
16.99PB
```
## Options
#### -p precision
```
> hsize 1025
1KB
> hsize -p 5 1025
1.00097KB
```