humanize 1.2.1
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.
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
}