@ls-stack/utils 3.39.0 → 3.40.0
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/dist/consoleFmt.cjs +1 -0
- package/dist/consoleFmt.d.cts +6 -0
- package/dist/consoleFmt.d.ts +6 -0
- package/dist/consoleFmt.js +1 -0
- package/docs/consoleFmt.md +30 -6
- package/package.json +2 -2
package/dist/consoleFmt.cjs
CHANGED
package/dist/consoleFmt.d.cts
CHANGED
|
@@ -16,8 +16,11 @@ declare const colorToCodeASCII: {
|
|
|
16
16
|
brightCyan: string;
|
|
17
17
|
brightWhite: string;
|
|
18
18
|
};
|
|
19
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
19
20
|
declare function consoleColors(color: keyof typeof colorToCodeASCII, text: string): string;
|
|
21
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
20
22
|
declare function bold(text: string): string;
|
|
23
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
21
24
|
declare function underline(text: string): string;
|
|
22
25
|
declare const bgColorToCodeASCII: {
|
|
23
26
|
red: string;
|
|
@@ -37,8 +40,11 @@ declare const bgColorToCodeASCII: {
|
|
|
37
40
|
brightCyan: string;
|
|
38
41
|
brightWhite: string;
|
|
39
42
|
};
|
|
43
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
40
44
|
declare function bgColor(color: keyof typeof bgColorToCodeASCII, text: string): string;
|
|
45
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
41
46
|
declare const consoleFmt: {
|
|
47
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
42
48
|
color: typeof consoleColors;
|
|
43
49
|
bold: typeof bold;
|
|
44
50
|
underline: typeof underline;
|
package/dist/consoleFmt.d.ts
CHANGED
|
@@ -16,8 +16,11 @@ declare const colorToCodeASCII: {
|
|
|
16
16
|
brightCyan: string;
|
|
17
17
|
brightWhite: string;
|
|
18
18
|
};
|
|
19
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
19
20
|
declare function consoleColors(color: keyof typeof colorToCodeASCII, text: string): string;
|
|
21
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
20
22
|
declare function bold(text: string): string;
|
|
23
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
21
24
|
declare function underline(text: string): string;
|
|
22
25
|
declare const bgColorToCodeASCII: {
|
|
23
26
|
red: string;
|
|
@@ -37,8 +40,11 @@ declare const bgColorToCodeASCII: {
|
|
|
37
40
|
brightCyan: string;
|
|
38
41
|
brightWhite: string;
|
|
39
42
|
};
|
|
43
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
40
44
|
declare function bgColor(color: keyof typeof bgColorToCodeASCII, text: string): string;
|
|
45
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
41
46
|
declare const consoleFmt: {
|
|
47
|
+
/** @deprecated Use `styleText` from `node:util` instead. */
|
|
42
48
|
color: typeof consoleColors;
|
|
43
49
|
bold: typeof bold;
|
|
44
50
|
underline: typeof underline;
|
package/dist/consoleFmt.js
CHANGED
package/docs/consoleFmt.md
CHANGED
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
## Variables
|
|
10
10
|
|
|
11
|
-
### consoleFmt
|
|
11
|
+
### ~~consoleFmt~~
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
14
|
const consoleFmt: object;
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
Defined in: [packages/utils/src/consoleFmt.ts:
|
|
17
|
+
Defined in: [packages/utils/src/consoleFmt.ts:61](https://github.com/lucasols/utils/blob/main/packages/utils/src/consoleFmt.ts#L61)
|
|
18
18
|
|
|
19
19
|
#### Type declaration
|
|
20
20
|
|
|
21
|
-
##### bgColor()
|
|
21
|
+
##### ~~bgColor()~~
|
|
22
22
|
|
|
23
23
|
```ts
|
|
24
24
|
bgColor: (color, text) => string;
|
|
@@ -38,7 +38,11 @@ bgColor: (color, text) => string;
|
|
|
38
38
|
|
|
39
39
|
`string`
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
###### Deprecated
|
|
42
|
+
|
|
43
|
+
Use `styleText` from `node:util` instead.
|
|
44
|
+
|
|
45
|
+
##### ~~bold()~~
|
|
42
46
|
|
|
43
47
|
```ts
|
|
44
48
|
bold: (text) => string;
|
|
@@ -54,7 +58,11 @@ bold: (text) => string;
|
|
|
54
58
|
|
|
55
59
|
`string`
|
|
56
60
|
|
|
57
|
-
|
|
61
|
+
###### Deprecated
|
|
62
|
+
|
|
63
|
+
Use `styleText` from `node:util` instead.
|
|
64
|
+
|
|
65
|
+
##### ~~color()~~
|
|
58
66
|
|
|
59
67
|
```ts
|
|
60
68
|
color: (color, text) => string = consoleColors;
|
|
@@ -74,7 +82,15 @@ color: (color, text) => string = consoleColors;
|
|
|
74
82
|
|
|
75
83
|
`string`
|
|
76
84
|
|
|
77
|
-
|
|
85
|
+
###### Deprecated
|
|
86
|
+
|
|
87
|
+
Use `styleText` from `node:util` instead.
|
|
88
|
+
|
|
89
|
+
###### Deprecated
|
|
90
|
+
|
|
91
|
+
Use `styleText` from `node:util` instead.
|
|
92
|
+
|
|
93
|
+
##### ~~underline()~~
|
|
78
94
|
|
|
79
95
|
```ts
|
|
80
96
|
underline: (text) => string;
|
|
@@ -89,3 +105,11 @@ underline: (text) => string;
|
|
|
89
105
|
###### Returns
|
|
90
106
|
|
|
91
107
|
`string`
|
|
108
|
+
|
|
109
|
+
###### Deprecated
|
|
110
|
+
|
|
111
|
+
Use `styleText` from `node:util` instead.
|
|
112
|
+
|
|
113
|
+
#### Deprecated
|
|
114
|
+
|
|
115
|
+
Use `styleText` from `node:util` instead.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ls-stack/utils",
|
|
3
3
|
"description": "Universal TypeScript utilities for browser and Node.js",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.40.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
},
|
|
253
253
|
"dependencies": {
|
|
254
254
|
"evtmitter": "^1.0.2",
|
|
255
|
-
"t-result": "^0.
|
|
255
|
+
"t-result": "^0.6.1"
|
|
256
256
|
},
|
|
257
257
|
"scripts": {
|
|
258
258
|
"test:ui": "vitest --ui",
|