You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
## Prettytable
1
+
## PrettyTable
2
2
3
-
Prettytable is a CLI based module for printing ASCII tables on the console from multiple data sources. The table can be populated by adding table rows one by one or from a CSV file or from a JSON file. It provides multiple ways of manipulating table data - sorting on a specific column, deleting a particular row or the table itself. The table can be printed as plain text or as a HTML table.
3
+
PrettyTable is a CLI based module for printing ASCII tables on the console from multiple data sources. The table can be populated by adding table rows one by one or from a CSV file or from a JSON file. It provides multiple ways of manipulating table data - sorting on a specific column, deleting a particular row or the table itself. The table can be printed as plain text or as a HTML table.
4
4
5
5
### Basic Usage
6
6
@@ -61,7 +61,7 @@ We are using `fieldNames()` method and passing a list of table headers. Method `
61
61
62
62
### Importing from CSV File
63
63
64
-
Prettytable can load a local CSV file and print it on the console. It considers the first row to generate table headers.
64
+
PrettyTable can load a local CSV file and print it on the console. It considers the first row to generate table headers.
65
65
66
66
```javascript
67
67
PrettyTable =require('prettytable');
@@ -73,7 +73,7 @@ pt.print();
73
73
74
74
### Importing from JSON File
75
75
76
-
Like CSV, Prettytable can load a local JSON file, parse through it and finally print it on the console. Table headers are automatically determined from the keys.
76
+
Like CSV, PrettyTable can load a local JSON file, parse through it and finally print it on the console. Table headers are automatically determined from the keys.
77
77
78
78
```javascript
79
79
PrettyTable =require('prettytable');
@@ -85,7 +85,7 @@ pt.print();
85
85
86
86
### Output Formats
87
87
88
-
Prettytable can print a table directly to the console, return as a string or print in HTML format.
88
+
PrettyTable can print a table directly to the console, return as a string or print in HTML format.
89
89
90
90
The following example shows returning the table as plain text and then printing to the console.
91
91
@@ -132,7 +132,7 @@ console.log(styledHTML);
132
132
133
133
### Sorting Table by Column
134
134
135
-
Prettytable also offers option to sort the table given a column name. Additional parameters can be passed to sort in ascending or descending order. If no parameter is passed, the table will be sorted in ascending order.
135
+
PrettyTable also offers option to sort the table given a column name. Additional parameters can be passed to sort in ascending or descending order. If no parameter is passed, the table will be sorted in ascending order.
0 commit comments