https://github.com/xpepermint/tbltyp
Table string typewriter.
https://github.com/xpepermint/tbltyp
ansi cargo column command-line crate row rust table
Last synced: 7 months ago
JSON representation
Table string typewriter.
- Host: GitHub
- URL: https://github.com/xpepermint/tbltyp
- Owner: xpepermint
- License: mit
- Created: 2020-04-14T07:53:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-23T11:24:22.000Z (about 6 years ago)
- Last Synced: 2025-07-13T10:09:19.685Z (11 months ago)
- Topics: ansi, cargo, column, command-line, crate, row, rust, table
- Language: Rust
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
> Table string typewriter.
This library is for creating formatted string tables. It honors ANSI and
Unicode characters thus you can safely use colors and other ANSI styles in
columns. This typewriter is primarily meant for command-line purposes but you
can use it for general string manipulation as well.
## Example
```rs
let column = Column::new()
.set_width(20)
.set_text("Hello world!")
.set_text_pad('+');
let row = Row::new()
.add_column(column)
.to_string();
```