Registry / utility / pretty-bytes

pretty-bytes

JSON →
library0.2.2rscratesunverified

Convert bytes to a human readable string.

# Cargo.toml [dependencies] pretty-bytes = "0.2.2"
INSTALL
IMPORT
SIG · PRETTY-BYTES
P
pretty-bytes
utilityrustv0.2.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

convert
use pretty_bytes::converter::convert;

Converts a byte count to a human-readable string.

use pretty_bytes::converter::convert; let readable = convert(1234567); println!("{}", readable); // e.g., "1.18 MB"
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
pretty-bytes — cargo add pretty-bytes · libregistry