Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vendethiel/formatter-align
Perl6 "Aligned Table"-style Formatter
https://github.com/vendethiel/formatter-align
formatter perl6 raku
Last synced: 17 days ago
JSON representation
Perl6 "Aligned Table"-style Formatter
- Host: GitHub
- URL: https://github.com/vendethiel/formatter-align
- Owner: vendethiel
- Created: 2016-04-17T19:20:36.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-17T19:29:17.000Z (almost 9 years ago)
- Last Synced: 2024-11-28T18:18:19.544Z (3 months ago)
- Topics: formatter, perl6, raku
- Language: Perl6
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Formatter::Align
===============Easily format an array in an aligned table.
Usage:
```perl6
use Formatter::Align;my @headers = <>;
my @data =
(1, "George", "CEO", "Reagen"),
(2, "Tami", "Employee", "?"),
(3, "Kaaris", "CXO", "Rap");# The headers are optional.
say format(@data, @headers);
```Output:
```
ID Name Type Family Name
== ==== ==== ===========
1 George CEO Reagen
2 Tami Employee ?
3 Kaaris CXO Rap
```Options:
- `padding-from`: The space at the beginning of a column.
- `padding-to`: The space at the end of a column.