{"repo":"privatenumber/terminal-columns","free":true,"listed":false,"github":"https://github.com/privatenumber/terminal-columns","clone":"git clone https://github.com/privatenumber/terminal-columns.git","description":"Render readable & responsive tables in the terminal","language":"TypeScript","stars":63,"topics":["cli","table","columns","readable","wrapping","responsive","typescript"],"license":"MIT","category":"cli-tools","readme_excerpt":"terminal-columns Readable tables for the terminal. Tables can be automatically responsive! Features - Content wrapped to fit column width - Column widths auto , content-width , viewport percents & static values - Align left & right - Horizontal & vertical padding - Rows can overflow into multiple rows - Easy to make responsive tables → Try it out online Support this project by ⭐️ starring and sharing it. Follow me to see what other cool projects I'm working on! ❤️ 🚀 Install 🚦 Quick start Render a table by passing table data into terminal-columns and writing it to stdout. By default, the columns will be rendered with the auto width, which splits the available width with other auto columns. To configure the width of each column, pass them in as the second argument. 📖 Examples Fixed width table You can set a fixed width for each column by passing in a the number of columns. However, note that this will wrap the row to the next line if the viewport width is smaller than the table width. Fixed width table with no row-wrapping You can change the row-wrapping behavior by telling terminal-columns to use a different viewport width via the stdoutColumns option. For example, passing in Infinity will trick it into thinking the table is never overflowing the viewport width. Padding You can add padding to each column by setting paddingLeft , paddingRight , paddingTop , or paddingBottom on the column. Right align text You can align the content of the column by setting align: 'right' . Re","default_branch":null,"files":null,"tree":[],"storefront":"/r/privatenumber","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/privatenumber/terminal-columns/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}