Skip to content

Commit 94428c2

Browse files
committed
🗑️ Deprecate enogu/tiny
1 parent 799cfd7 commit 94428c2

File tree

3 files changed

+30
-126
lines changed

3 files changed

+30
-126
lines changed

deno.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
"bench": "deno bench --allow-sys --allow-read",
44
"build:npm": "deno run --allow-env --allow-sys --allow-run --allow-write=npm --allow-read build_npm.ts"
55
},
6-
"exclude": [
7-
"npm"
8-
],
9-
"workspaces": [
10-
"./src"
11-
],
6+
"exclude": ["npm"],
7+
"workspaces": ["./src"],
128
"imports": {
139
"@david/dts-minify": "jsr:@david/dts-minify@^0.3.3",
1410
"@std/assert": "jsr:@std/assert@^0.224.0",

src/tiny.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// Copyright 2023-2024 ryu. All rights reserved. MIT license. @license
22
/*
3+
* @deprecated Use @ryu/enogu.
4+
*
35
* Painting your terminal with colors.
46
* This module is the tiny version with only limited colors implemented.
57
*
@@ -22,133 +24,159 @@ function init(open: number, close: number) {
2224
}
2325

2426
/**
27+
* @deprecated
2528
* Set text at reset
2629
* @param str text to reset
2730
*/
2831
export const reset: (str: string) => string = init(0, 0);
2932
/**
33+
* @deprecated
3034
* Set text at bold
3135
* @param str text to bold
3236
*/
3337
export const bold: (str: string) => string = init(1, 22);
3438
/**
39+
* @deprecated
3540
* Set text at dim
3641
* @param str text to dim
3742
*/
3843
export const dim: (str: string) => string = init(2, 22);
3944
/**
45+
* @deprecated
4046
* Set text at italic
4147
* @param str text to italic
4248
*/
4349
export const italic: (str: string) => string = init(3, 23);
4450
/**
51+
* @deprecated
4552
* Set text at underline
4653
* @param str text to underline
4754
*/
4855
export const underline: (str: string) => string = init(4, 24);
4956
/**
57+
* @deprecated
5058
* Set text at inverse
5159
* @param str text to inverse
5260
*/
5361
export const inverse: (str: string) => string = init(7, 27);
5462
/**
63+
* @deprecated
5564
* Set text at hidden
5665
* @param str text to hidden
5766
*/
5867
export const hidden: (str: string) => string = init(8, 28);
5968
/**
69+
* @deprecated
6070
* Set text at strikethrough
6171
* @param str text to strikethrough
6272
*/
6373
export const strikethrough: (str: string) => string = init(9, 29);
6474

6575
/**
76+
* @deprecated
6677
* Set text at black
6778
* @param str text to black
6879
*/
6980
export const black: (str: string) => string = init(30, 39);
7081
/**
82+
* @deprecated
7183
* Set text at red
7284
* @param str text to red
7385
*/
7486
export const red: (str: string) => string = init(31, 39);
7587
/**
88+
* @deprecated
7689
* Set text at green
7790
* @param str text to green
7891
*/
7992
export const green: (str: string) => string = init(32, 39);
8093
/**
94+
* @deprecated
8195
* Set text at yellow
8296
* @param str text to yellow
8397
*/
8498
export const yellow: (str: string) => string = init(33, 39);
8599
/**
100+
* @deprecated
86101
* Set text at blue
87102
* @param str text to blue
88103
*/
89104
export const blue: (str: string) => string = init(34, 39);
90105
/**
106+
* @deprecated
91107
* Set text at magenta
92108
* @param str text to magenta
93109
*/
94110
export const magenta: (str: string) => string = init(35, 39);
95111
/**
112+
* @deprecated
96113
* Set text at cyan
97114
* @param str text to cyan
98115
*/
99116
export const cyan: (str: string) => string = init(36, 39);
100117
/**
118+
* @deprecated
101119
* Set text at white
102120
* @param str text to white
103121
*/
104122
export const white: (str: string) => string = init(37, 39);
105123
/**
124+
* @deprecated
106125
* Set text at gray
107126
* @param str text to gray
108127
*/
109128
export const gray: (str: string) => string = init(90, 39);
110129

111130
/**
131+
* @deprecated
112132
* Set background at black
113133
* @param str background to black
114134
*/
115135
export const bgBlack: (str: string) => string = init(40, 49);
116136
/**
137+
* @deprecated
117138
* Set background at red
118139
* @param str background to red
119140
*/
120141
export const bgRed: (str: string) => string = init(41, 49);
121142
/**
143+
* @deprecated
122144
* Set background at green
123145
* @param str background to green
124146
*/
125147
export const bgGreen: (str: string) => string = init(42, 49);
126148
/**
149+
* @deprecated
127150
* Set background at yellow
128151
* @param str background to yellow
129152
*/
130153
export const bgYellow: (str: string) => string = init(43, 49);
131154
/**
155+
* @deprecated
132156
* Set background at blue
133157
* @param str background to blue
134158
*/
135159
export const bgBlue: (str: string) => string = init(44, 49);
136160
/**
161+
* @deprecated
137162
* Set background at magenta
138163
* @param str background to magenta
139164
*/
140165
export const bgMagenta: (str: string) => string = init(45, 49);
141166
/**
167+
* @deprecated
142168
* Set background at cyan
143169
* @param str background to cyan
144170
*/
145171
export const bgCyan: (str: string) => string = init(46, 49);
146172
/**
173+
* @deprecated
147174
* Set background at white
148175
* @param str background to white
149176
*/
150177
export const bgWhite: (str: string) => string = init(47, 49);
151178
/**
179+
* @deprecated
152180
* Set background at gray
153181
* @param str background to gray
154182
*/

test/tiny_test.ts

Lines changed: 0 additions & 120 deletions
This file was deleted.

0 commit comments

Comments
 (0)