dolumns 1.0.1 copy "dolumns: ^1.0.1" to clipboard
dolumns: ^1.0.1 copied to clipboard

outdated

A library for formatting text output into columns.

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.

19
likes
0
pub points
83%
popularity

Publisher

verified publishermanichord.com

A library for formatting text output into columns.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on dolumns