Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Asciitable for dlang

https://img.shields.io/github/tag/gizmomogwai/asciitable.svg?style=flat-square https://img.shields.io/travis/gizmomogwai/asciitable/master.svg?style=flat-square https://img.shields.io/codecov/c/github/gizmomogwai/asciitable/master.svg?style=flat-square https://img.shields.io/readthedocs/pip.svg?style=flat-square

Simple api to create nice looking asciitables.

Shameless plug from the fantastic terminal-table, tty-table or prettytable-rs (I only found the later two when writing this readme :)).

import asciitable;
import std.stdio;

new AsciiTable(2)
    .row.add("hello").add("world")
    .row.add("here").add("we are")
    .table
    .format
    .parts(new UnicodeParts)
    .columnSeparator(true)
    .writeln;

->

 |hello|world | 
 |here |we are| 

Usage

Please see the online docs for an example.

TODOs

horizontalPadding for cells

About

Simple asciitable for d

Resources

Packages

No packages published

Languages