ascii-pretty-table
Advanced tools
Comparing version 1.1.1 to 1.1.3
@@ -0,0 +0,0 @@ class Table { |
{ | ||
"name": "ascii-pretty-table", | ||
"version": "1.1.1", | ||
"version": "1.1.3", | ||
"description": "make a pretty table ", | ||
@@ -24,3 +24,6 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/imranbarbhuiya/ascii-pretty-table#readme" | ||
"homepage": "https://github.com/imranbarbhuiya/ascii-pretty-table#readme", | ||
"devDependencies": { | ||
"chai": "^4.3.4" | ||
} | ||
} |
# ascii-pretty-table | ||
A simple and light weight library for creating ASCII tables. | ||
[ascii-pretty-table](https://www.npmjs.com/package/ascii-pretty-table), A simple and light weight library for creating ASCII tables. | ||
@@ -28,11 +28,11 @@ ## Uses | ||
```ascii | ||
...................... | ||
+....................+ | ||
| A Title | | ||
'''''''''''''''''''''' | ||
+''''''''''''''''''''+ | ||
| Column 1 | Column 2| | ||
'''''''''''''''''''''' | ||
+''''''''''''''''''''+ | ||
| Row 1 | Row 2 | | ||
'''''''''''''''''''''' | ||
+''''''''''''''''''''+ | ||
| Row 3 | Row 4 | | ||
'''''''''''''''''''''' | ||
+''''''''''''''''''''+ | ||
``` | ||
@@ -45,3 +45,9 @@ | ||
```js | ||
table.setSeparators({ top: ".", bottom: "'", edge: "|", fill: "-" }); | ||
table.setSeparators({ | ||
top: ".", | ||
bottom: "'", | ||
edge: "|", | ||
fill: "-", | ||
corner: "+", | ||
}); | ||
``` | ||
@@ -52,5 +58,5 @@ | ||
- `name` - The name of the table. | ||
- `setSeparator({edge, top, fill, bottom})` - Set the separator character. | ||
- `setSeparator({top: ".", bottom: "'", edge: "|", fill: "-", corner: "+"})` - Set the separator character. | ||
- `setHeading(heading1, heading2, ...)` - Set the headings. | ||
- `addRow(row1, row2, ...)` - Add a row. | ||
- `toString()` - Return the table as a string. |
@@ -0,0 +0,0 @@ declare class Table { |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
5129
5
60
1
1