dolumns 1.0.1+1
dolumns: ^1.0.1+1

Dart native js
Flutter Android iOS web

A Dart library for formatting text output into columns. Useful for printing tabular data in a terminal.

A library for formatting text output into columns.

Usage #

A simple usage example:

import 'package:dolumns/dolumns.dart';

main() {
  final columns = dolumnify([
    ['provider', '4.0.2'],
    ['http', '0.12.0+4'],
    ['shared_preferences', '0.5.6+1'],
    ['sentry', '3.0.1'],
  ]);
  print(columns);
}

will output:

provider            4.0.2   
http                0.12.0+4
shared_preferences  0.5.6+1 
sentry              3.0.1   

You can also supply a custom column splitter, (...], columnSplitter: ' | '); will give:

provider           | 4.0.2   
http               | 0.12.0+4
shared_preferences | 0.5.6+1 
sentry             | 3.0.1 

see dolumns_example.dart example file for full details.

Note you can pass in objects of any type, dolumn will call toString() on every object passed in.

API inspired by the columinfy npm package.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
105
pub points
31%
popularity

Publisher

manichord.com

A Dart library for formatting text output into columns. Useful for printing tabular data in a terminal.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on dolumns