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

A set of "humanize" filters inspired by Django, designed to add a human touch to data (numbers, dates, texts) in Dart.

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
}
33
likes
0
points
115
downloads

Publisher

unverified uploader

Weekly Downloads

A set of "humanize" filters inspired by Django, designed to add a human touch to data (numbers, dates, texts) in Dart.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

intl

More

Packages that depend on humanize