humanize 0.3.0 humanize: ^0.3.0 copied to clipboard
A package for translating numbers and dates into a human readable format.
import 'package:humanize/humanize.dart' as humanize;
void main() {
print(humanize.appNumber(1)); // one
print(humanize.appNumber(9)); // six
print(humanize.intComma(100));
print(humanize.intComma(80010000));
print(humanize.ordinal(1)); // 2nd
print(humanize.ordinal(2)); // 2nd
print(humanize.ordinal(11));
print(humanize.ordinal(81)); // 24th
}