pretty-bytes-typed

Crates.iopretty-bytes-typed
lib.rspretty-bytes-typed
version0.2.0
sourcesrc
created_at2023-08-06 16:45:27.660957
updated_at2023-10-14 23:25:10.840146
descriptionStrongly-typed prettified byte values
homepage
repositoryhttps://github.com/ravenclaw900/pretty-bytes-enum
max_upload_size
id937272
size24,428
(ravenclaw900)

documentation

README

Pretty Bytes Typed

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.

Commit count: 11

cargo fmt