Skip to content

gcarreno/fp-humanize

Repository files navigation

Lazarus Humanize Package

Build Status Supports Windows Supports Linux Supports macOS License Latest Release Downloads

This package provides functions to humanize the following:

  • Bytes: Both base 2 and base 10 - B, KB... B, Kib...
  • Comma:
    • Thousands separator for integers and reals( with precision )
    • Turn an array of strings into a comma separated string with sorting
  • CommaAnd: Turn an array of strings into a comma separated string with sorting, with the last 2 items having a and between them
  • Ordinals: 1st, 2nd, 3rd, Nth
  • Time: 1 second ago, 1 second from now, etc

There's a comprehensive demo: Demo Folder

You can find the package here: Package Folder