humanize 1.2.1 copy "humanize: ^1.2.1" to clipboard
humanize: ^1.2.1 copied to clipboard

Humanize is a compact toolkit that makes UI strings feel natural. It bridges raw data and human-friendly phrasing with helpers for dates, numbers, lists, and text in English and French.

example/main.dart

import 'package:humanize/humanize.dart';

void main() {
  print(apNumber(5)); // five
  print(ordinal(23)); // 23rd
  print(intcomma(1234567)); // 1,234,567
  print(filesizeformat(1536000)); // 1.5 MB
  print(naturaltime(DateTime.now().subtract(Duration(minutes: 3)))); // 3 minutes ago
}
32
likes
135
points
328
downloads

Publisher

unverified uploader

Weekly Downloads

Humanize is a compact toolkit that makes UI strings feel natural. It bridges raw data and human-friendly phrasing with helpers for dates, numbers, lists, and text in English and French.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

intl

More

Packages that depend on humanize