Skip to content

Quickly format table in ASCII. Great for code comments, or Github Markdown!

Notifications You must be signed in to change notification settings

Semigradsky/ascii-tables

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

ascii-tables

Quickly format tables in ASCII. Great for code comments, or Github Markdown!

Play with it: http://ozh.github.io/ascii-tables/

Input text like this

Col1	Col2	Col3
Value 1	Value 2	123
Separate	columns	with a tab or 4 spaces
This is a row with only one cell

Press Create Table to get something like:

Ascii table (mysql style)

+----------------------------------+---------+------------------------+
|               Col1               |  Col2   |          Col3          |
+----------------------------------+---------+------------------------+
| Value 1                          | Value 2 | 123                    |
| Separate                         | columns | with a tab or 4 spaces |
| This is a row with only one cell |         |                        |
+----------------------------------+---------+------------------------+

Ascii table 2 (alt style)

+==================================+================================+======+
|               Col1               |              Col2              | Col3 |
+==================================+================================+======+
| Value 1                          | Value 2                        |  123 |
+----------------------------------+--------------------------------+------+
| Separate                         | columns with a tab or 4 spaces |      |
+----------------------------------+--------------------------------+------+
| This is a row with only one cell |                                |      |
+----------------------------------+--------------------------------+------+

Unicode table

╔══════════════════════════════════╦═════════╦════════════════════════╗
║               Col1               ║  Col2   ║          Col3          ║
╠══════════════════════════════════╬═════════╬════════════════════════╣
║ Value 1                          ║ Value 2 ║ 123                    ║
║ Separate                         ║ columns ║ with a tab or 4 spaces ║
║ This is a row with only one cell ║         ║                        ║
╚══════════════════════════════════╩═════════╩════════════════════════╝

Github Markdown table

|               Col1               |  Col2   |          Col3          |
|----------------------------------|---------|------------------------|
| Value 1                          | Value 2 | 123                    |
| Separate                         | columns | with a tab or 4 spaces |
| This is a row with only one cell |         |                        |

Or even a boring html <table>

About

Quickly format table in ASCII. Great for code comments, or Github Markdown!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.6%
  • CSS 11.4%