https://github.com/rsachdeva/file-size-formatter
File size handling in various units
https://github.com/rsachdeva/file-size-formatter
rust rust-lang
Last synced: 5 months ago
JSON representation
File size handling in various units
- Host: GitHub
- URL: https://github.com/rsachdeva/file-size-formatter
- Owner: rsachdeva
- License: mit
- Created: 2023-12-06T23:50:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-08T17:06:19.000Z (about 2 years ago)
- Last Synced: 2025-09-02T06:34:05.462Z (5 months ago)
- Topics: rust, rust-lang
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# File size handling to convert input string to various units
### input as a string
cargo run "24 gb"
### for debug output with all units
Sizes { bytes: 24000000000, kilobytes: 24000000, megabytes: 24000, gigabytes: 24 }