Skip to content

gizmomogwai/asciitable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published

Languages