Registry / cli / console-table

console-table

JSON →
library0.3.1rbrubygemsunverified

Allows developers to define tables with specifically-sized columns, which can then have entries printed to them that are automatically formatted, truncated, and padded to fit in the console window.

gem install console_table
INSTALL
IMPORT
SIG · CONSOLE-TABLE
C
console-table
clirubyv0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ConsoleTable
require 'console_table'

Create a table with columns and print formatted rows

require 'console_table' table = ConsoleTable.new([{name: 'Name', width: 20}, {name: 'Age', width: 5}]) table.add_row(['Alice', '30']) table.add_row(['Bob', '25']) puts table.render
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
23 hits · last 30 days
node
22
Amazon
1
Resources
console-table — gem install console-table · libregistry