dolumns
2.0.1, released 4 years ago by manichord.com
Format text output into columns for terminal tabular data.
WASM-ready
What it does
Formats text output into aligned columns, making it useful for printing tabular data in a terminal. It supports custom column splitters, headers, and header separators, and calls toString() on any object passed in.
AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to print tabular data nicely aligned in a command-line interface
- You want to quickly format lists of strings or objects into columns
Skip it when
- You are building graphical user interfaces
- You need complex table manipulations like sorting, pagination, or filtering
Strengths
- Simple and lightweight API
- Supports custom column splitters and headers
Weaknesses
- Limited to terminal and text-based formatting
- No advanced table features like sorting or styling
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:dolumns/dolumns.dart';
main() {
final columns = dolumnify([
['provider', '4.0.2'],
['http', '0.12.0+4'],
]);
print(columns);
}Alternatives
Packages that do the same job and could replace dolumns.
- validators2
String validation and sanitization for Dart.
83Compare - tint
Terminal string styling as an extension on String.
50Compare - ansi_escapes
ANSI escape codes for terminal manipulation
48Compare - cli_table
Displays static tabular data in terminal in Dart applications.
46Compare