Registry / utility / human-format

human-format

JSON →
library1.2.1rscratesunverified

A Rust port of the human-format Node.js library for formatting numbers in a human-readable way.

# Cargo.toml [dependencies] human_format = "1.2.1"
INSTALL
IMPORT
SIG · HUMAN-FORMAT
H
human-format
utilityrustv1.2.1
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.

Formatter
use human_format::Formatter;

Formats a number into a human-readable string (e.g., 1500 becomes "1.5K").

use human_format::Formatter; fn main() { let mut formatter = Formatter::new(); println!("{}", formatter.format(1500.0)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
human-format — cargo add human-format · libregistry