Skip to content

Commit be32c2a

Browse files
committed
improvements
1 parent 3211819 commit be32c2a

6 files changed

Lines changed: 225 additions & 213 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
logs
33
*.log
44
npm-debug.log*
5+
.idea/
56

67
# Runtime data
78
pids

.jshintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"freeze": true,
99
"immed": true,
1010
"indent": 4,
11+
"esversion": 6,
1112
"latedef": true,
1213
"newcap": true,
1314
"noarg": true,
@@ -47,7 +48,7 @@
4748

4849
"onevar": true,
4950

50-
"globals": {
51+
"globals": {
5152
"module": true,
5253
"process": true,
5354
"console": true,

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
"name": "prettytable",
33
"version": "0.3.1",
44
"main": "prettytable.js",
5+
"types": "prettytable.d.ts",
56
"description": "CLI based Node module for generating pretty tables from multiple data sources",
6-
"keywords": ["table", "cli table", "csv", "json"],
7+
"keywords": [
8+
"table",
9+
"cli table",
10+
"csv",
11+
"json"
12+
],
713
"repository": "https://github.com/jyotiska/prettytable",
814
"author": "Jyotiska NK <jyotiska123@gmail.com>",
915
"license": "MIT",
1016
"dependencies": {
11-
"csv-parse": "latest"
17+
"csv-parse": "^5.2.2"
1218
}
1319
}

prettytable.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export class PrettyTable {
2+
fieldNames(names: string[]): void;
3+
4+
addRow(row: string[]): string;
5+
6+
toString(): string;
7+
}

0 commit comments

Comments
 (0)