tablestream

Crates.iotablestream
lib.rstablestream
version0.1.3
sourcesrc
created_at2021-08-05 23:00:14.823256
updated_at2021-08-06 05:43:06.252556
descriptionA streaming table formatter for the console
homepage
repositoryhttps://github.com/NfNitLoop/tablestream
max_upload_size
id432222
size48,491
Cody Casterline (NfNitLoop)

documentation

https://docs.rs/tablestream

README

TableStream

Stream data to the terminal and display it in ASCII tables.

TableStream will initially buffer some rows and use them to automatically determine appropriate widths for columns. It will try to automatically detect the current terminal's width and fit the rows into that width.

After that, it clears the buffer and just streams data directly to your output. (An io::Write)

See the API Docs for code examples. Install from crates.io.

Exmaple GIF

Current Limitations

  • Doesn't handle right-to-left text. (Have tips on doing this in a terminal!?)
  • Emoji aren't handled.
  • Bengali seems to not render properly in Widnows terminal, so that's not supported. (Though maybe it'll work for you elsewhere?)

Future Features?

  • Could add options for colors.
Commit count: 21

cargo fmt