list-it is a fixed-column text table formatter for JavaScript/Node.js, version 1.3.13. It offers a simple API (ListIt class) to build aligned text tables with options like auto-alignment of decimals, column width truncation, header rows with underline, and a CLI command (listit) to format JSON arrays as tables. Compared to other table libraries (e.g., cli-table, easy-table), list-it focuses on fixed-width columns and automatic decimal alignment, but it does not support borders, padding, or complex styling. The package is stable with infrequent releases, last updated in 2021.
npm install list-itNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a simple two-column table using the ListIt chaining API and prints it.
Ensure column widths are set before adding data, or reset them with an explicit width of 0 to disable truncation.
Use autoAlign only when columns are strictly numeric. For mixed content, consider manual padding.
Use 'listit --help' for usage; or install list-it globally and run 'listit' without arguments.
Use require('list-it') instead.Run 'npm install list-it' in the project root.