GitXplorerGitXplorer
a

text-asci-table

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
74ce47e97f855ee41015589532c763676ec3d559

Version 0.1.0

aashb committed 15 years ago
Unverified
b29d569b78b8836d0cf04068300faf77ab669dc6

Docs

aashb committed 15 years ago
Unverified
abff7226c38492bc6a687a24f23978f9839486e0

Test and implement the actual drawing.

aashb committed 15 years ago
Unverified
3e25af490e9c491cf7222c87c1e83fac5d7be4f0

Making a start: get wrapping working with ansi colours

aashb committed 15 years ago

README

The README file for this repository.

text-ascii-table

Draw pretty ascii tables in JavaScript.

A picture is worth a thousand words, so here is one:

.----------------------+--------------------------------.
| Project              | Features                       |
+----------------------+--------------------------------+
| Flusspferd           | Embeddable C++, almost all of- |
|                      |  CommonJS specs                |
| Narwhall             | Rhino, CommonJS again, and ja- |
|                      | va libs                        |
| node                 | Evented, but just require fro- |
|                      | m CommonJS                     |
'----------------------+--------------------------------'

As you can see the text wrapping is not particularly advanced. That's because this module was inspired by perl's [Text::SimpleTable] and I primarily plan on using it to display tables of non-prose.

See the docs in lib/text-ascii-table.js for the API.

[Text::SimpleTable] http://search.cpan.org/perldoc?Text::SimpleTable