Crates.io | pretty-bytes-enum |
lib.rs | pretty-bytes-enum |
version | 0.1.0 |
source | src |
created_at | 2023-08-06 16:41:52.967214 |
updated_at | 2023-08-06 16:41:52.967214 |
description | Strongly-typed prettified byte values |
homepage | |
repository | https://github.com/ravenclaw900/pretty-bytes-enum |
max_upload_size | |
id | 937270 |
size | 24,543 |
A simple, no-dependencies crate for converting a number of bytes into a strongly-typed representation of the "prettified" version of those bytes.
Compatible with serde
! Designed for serializing possibly large byte values into JSON and sending to JavaScript code, since JS doesn't support full u64
values.
Inspired by/derived from https://github.com/sindresorhus/pretty-bytes.