@thi.ng/markdown-table 0.3.31 → 0.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +7 -10
- package/api.d.ts +3 -3
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
2
|
|
|
3
|
-
# 
|
|
3
|
+
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/markdown-table)
|
|
6
6
|

|
|
7
|
-
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
This project is part of the
|
|
10
10
|
[@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
|
|
@@ -20,7 +20,7 @@ This project is part of the
|
|
|
20
20
|
|
|
21
21
|
## About
|
|
22
22
|
|
|
23
|
-
Markdown table formatter/generator with support for column alignments
|
|
23
|
+
Markdown table formatter/generator with support for column alignments
|
|
24
24
|
|
|
25
25
|
See related packages below for alternative solutions / approaches...
|
|
26
26
|
|
|
@@ -51,11 +51,8 @@ ES module import:
|
|
|
51
51
|
|
|
52
52
|
For Node.js REPL:
|
|
53
53
|
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
node --experimental-repl-await
|
|
57
|
-
|
|
58
|
-
> const markdownTable = await import("@thi.ng/markdown-table");
|
|
54
|
+
```js
|
|
55
|
+
const markdownTable = await import("@thi.ng/markdown-table");
|
|
59
56
|
```
|
|
60
57
|
|
|
61
58
|
Package sizes (brotli'd, pre-treeshake): ESM: 619 bytes
|
|
@@ -124,7 +121,7 @@ Result as Markdown:
|
|
|
124
121
|
|
|
125
122
|
## Authors
|
|
126
123
|
|
|
127
|
-
Karsten Schmidt
|
|
124
|
+
- [Karsten Schmidt](https://thi.ng)
|
|
128
125
|
|
|
129
126
|
If this project contributes to an academic publication, please cite it as:
|
|
130
127
|
|
|
@@ -139,4 +136,4 @@ If this project contributes to an academic publication, please cite it as:
|
|
|
139
136
|
|
|
140
137
|
## License
|
|
141
138
|
|
|
142
|
-
© 2021 - 2022 Karsten Schmidt // Apache
|
|
139
|
+
© 2021 - 2022 Karsten Schmidt // Apache License 2.0
|
package/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Nullable, NumOrString } from "@thi.ng/api";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Align = "c" | "l" | "r";
|
|
3
|
+
export type Column = Nullable<NumOrString>;
|
|
4
|
+
export type Row = Column[];
|
|
5
5
|
export interface TableOpts {
|
|
6
6
|
/**
|
|
7
7
|
* If true, header cells will be wrapped in `**` (bold Markdown syntax).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/markdown-table",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.32",
|
|
4
4
|
"description": "Markdown table formatter/generator with support for column alignments",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/thi-ng/umbrella.git"
|
|
12
12
|
},
|
|
13
|
-
"homepage": "https://github.com/thi-ng/umbrella/tree/
|
|
13
|
+
"homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/markdown-table#readme",
|
|
14
14
|
"funding": [
|
|
15
15
|
{
|
|
16
16
|
"type": "github",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://patreon.com/thing_umbrella"
|
|
22
22
|
}
|
|
23
23
|
],
|
|
24
|
-
"author": "Karsten Schmidt
|
|
24
|
+
"author": "Karsten Schmidt (https://thi.ng)",
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "yarn clean && tsc --declaration",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.
|
|
38
|
-
"@thi.ng/checks": "^3.3.
|
|
39
|
-
"@thi.ng/compose": "^2.1.
|
|
40
|
-
"@thi.ng/errors": "^2.2.
|
|
41
|
-
"@thi.ng/strings": "^3.3.
|
|
42
|
-
"@thi.ng/transducers": "^8.3.
|
|
37
|
+
"@thi.ng/api": "^8.6.0",
|
|
38
|
+
"@thi.ng/checks": "^3.3.5",
|
|
39
|
+
"@thi.ng/compose": "^2.1.21",
|
|
40
|
+
"@thi.ng/errors": "^2.2.6",
|
|
41
|
+
"@thi.ng/strings": "^3.3.20",
|
|
42
|
+
"@thi.ng/transducers": "^8.3.26"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@microsoft/api-extractor": "^7.33.
|
|
46
|
-
"@thi.ng/testament": "^0.3.
|
|
45
|
+
"@microsoft/api-extractor": "^7.33.7",
|
|
46
|
+
"@thi.ng/testament": "^0.3.7",
|
|
47
47
|
"rimraf": "^3.0.2",
|
|
48
48
|
"tools": "^0.0.1",
|
|
49
|
-
"typedoc": "^0.23.
|
|
50
|
-
"typescript": "^4.
|
|
49
|
+
"typedoc": "^0.23.22",
|
|
50
|
+
"typescript": "^4.9.4"
|
|
51
51
|
},
|
|
52
52
|
"keywords": [
|
|
53
53
|
"align",
|
|
@@ -87,5 +87,5 @@
|
|
|
87
87
|
],
|
|
88
88
|
"year": 2021
|
|
89
89
|
},
|
|
90
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
|
|
91
91
|
}
|