https://github.com/gcarreno/fp-humanize
A Lazarus package to humanize some values like Bytes, Numbers, Ordinals and Time
https://github.com/gcarreno/fp-humanize
formatter formatting formatting-data formatting-text formatting-time fpc free-pascal freepascal humanize humanizer lazarus lazarus-package package
Last synced: 4 months ago
JSON representation
A Lazarus package to humanize some values like Bytes, Numbers, Ordinals and Time
- Host: GitHub
- URL: https://github.com/gcarreno/fp-humanize
- Owner: gcarreno
- License: mit
- Created: 2025-06-27T07:43:30.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-06-29T01:04:24.000Z (11 months ago)
- Last Synced: 2025-08-10T01:32:07.906Z (10 months ago)
- Topics: formatter, formatting, formatting-data, formatting-text, formatting-time, fpc, free-pascal, freepascal, humanize, humanizer, lazarus, lazarus-package, package
- Language: Pascal
- Homepage:
- Size: 105 KB
- Stars: 9
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lazarus Humanize Package
[](https://github.com/gcarreno/fp-humanize/actions)
[](https://github.com/gcarreno/fp-humanize/releases/latest)
[](https://github.com/gcarreno/fp-humanize/releases/latest)
[](https://github.com/gcarreno/fp-humanize/releases/latest)
[](https://github.com/gcarreno/fp-humanize/blob/main/LICENSE)
[](https://github.com/gcarreno/fp-humanize/releases/latest)
[](https://github.com/gcarreno/fp-humanize/releases)
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](demo)
You can find the package here: [Package Folder](packages/Lazarus/)