es-toolkit 1.46.1-dev.1803 → 1.46.1-dev.1805

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.
Files changed (205) hide show
  1. package/dist/server/colors/_internal/parseHex.js +32 -0
  2. package/dist/server/colors/_internal/parseHex.mjs +32 -0
  3. package/dist/server/colors/_internal/wrapAnsi.js +21 -0
  4. package/dist/server/colors/_internal/wrapAnsi.mjs +21 -0
  5. package/dist/server/colors/_internal/wrapAnsiBg.js +30 -0
  6. package/dist/server/colors/_internal/wrapAnsiBg.mjs +30 -0
  7. package/dist/server/colors/ansi256.d.mts +18 -0
  8. package/dist/server/colors/ansi256.d.ts +18 -0
  9. package/dist/server/colors/ansi256.js +19 -0
  10. package/dist/server/colors/ansi256.mjs +19 -0
  11. package/dist/server/colors/bgAnsi256.d.mts +18 -0
  12. package/dist/server/colors/bgAnsi256.d.ts +18 -0
  13. package/dist/server/colors/bgAnsi256.js +19 -0
  14. package/dist/server/colors/bgAnsi256.mjs +19 -0
  15. package/dist/server/colors/bgBlack.d.mts +15 -0
  16. package/dist/server/colors/bgBlack.d.ts +15 -0
  17. package/dist/server/colors/bgBlack.js +18 -0
  18. package/dist/server/colors/bgBlack.mjs +18 -0
  19. package/dist/server/colors/bgBlackBright.d.mts +15 -0
  20. package/dist/server/colors/bgBlackBright.d.ts +15 -0
  21. package/dist/server/colors/bgBlackBright.js +18 -0
  22. package/dist/server/colors/bgBlackBright.mjs +18 -0
  23. package/dist/server/colors/bgBlue.d.mts +15 -0
  24. package/dist/server/colors/bgBlue.d.ts +15 -0
  25. package/dist/server/colors/bgBlue.js +18 -0
  26. package/dist/server/colors/bgBlue.mjs +18 -0
  27. package/dist/server/colors/bgBlueBright.d.mts +15 -0
  28. package/dist/server/colors/bgBlueBright.d.ts +15 -0
  29. package/dist/server/colors/bgBlueBright.js +18 -0
  30. package/dist/server/colors/bgBlueBright.mjs +18 -0
  31. package/dist/server/colors/bgCyan.d.mts +15 -0
  32. package/dist/server/colors/bgCyan.d.ts +15 -0
  33. package/dist/server/colors/bgCyan.js +18 -0
  34. package/dist/server/colors/bgCyan.mjs +18 -0
  35. package/dist/server/colors/bgCyanBright.d.mts +15 -0
  36. package/dist/server/colors/bgCyanBright.d.ts +15 -0
  37. package/dist/server/colors/bgCyanBright.js +18 -0
  38. package/dist/server/colors/bgCyanBright.mjs +18 -0
  39. package/dist/server/colors/bgGreen.d.mts +15 -0
  40. package/dist/server/colors/bgGreen.d.ts +15 -0
  41. package/dist/server/colors/bgGreen.js +18 -0
  42. package/dist/server/colors/bgGreen.mjs +18 -0
  43. package/dist/server/colors/bgGreenBright.d.mts +15 -0
  44. package/dist/server/colors/bgGreenBright.d.ts +15 -0
  45. package/dist/server/colors/bgGreenBright.js +18 -0
  46. package/dist/server/colors/bgGreenBright.mjs +18 -0
  47. package/dist/server/colors/bgHex.d.mts +18 -0
  48. package/dist/server/colors/bgHex.d.ts +18 -0
  49. package/dist/server/colors/bgHex.js +21 -0
  50. package/dist/server/colors/bgHex.mjs +21 -0
  51. package/dist/server/colors/bgMagenta.d.mts +15 -0
  52. package/dist/server/colors/bgMagenta.d.ts +15 -0
  53. package/dist/server/colors/bgMagenta.js +18 -0
  54. package/dist/server/colors/bgMagenta.mjs +18 -0
  55. package/dist/server/colors/bgMagentaBright.d.mts +15 -0
  56. package/dist/server/colors/bgMagentaBright.d.ts +15 -0
  57. package/dist/server/colors/bgMagentaBright.js +18 -0
  58. package/dist/server/colors/bgMagentaBright.mjs +18 -0
  59. package/dist/server/colors/bgRed.d.mts +15 -0
  60. package/dist/server/colors/bgRed.d.ts +15 -0
  61. package/dist/server/colors/bgRed.js +18 -0
  62. package/dist/server/colors/bgRed.mjs +18 -0
  63. package/dist/server/colors/bgRedBright.d.mts +15 -0
  64. package/dist/server/colors/bgRedBright.d.ts +15 -0
  65. package/dist/server/colors/bgRedBright.js +18 -0
  66. package/dist/server/colors/bgRedBright.mjs +18 -0
  67. package/dist/server/colors/bgRgb.d.mts +20 -0
  68. package/dist/server/colors/bgRgb.d.ts +20 -0
  69. package/dist/server/colors/bgRgb.js +21 -0
  70. package/dist/server/colors/bgRgb.mjs +21 -0
  71. package/dist/server/colors/bgWhite.d.mts +15 -0
  72. package/dist/server/colors/bgWhite.d.ts +15 -0
  73. package/dist/server/colors/bgWhite.js +18 -0
  74. package/dist/server/colors/bgWhite.mjs +18 -0
  75. package/dist/server/colors/bgWhiteBright.d.mts +15 -0
  76. package/dist/server/colors/bgWhiteBright.d.ts +15 -0
  77. package/dist/server/colors/bgWhiteBright.js +18 -0
  78. package/dist/server/colors/bgWhiteBright.mjs +18 -0
  79. package/dist/server/colors/bgYellow.d.mts +15 -0
  80. package/dist/server/colors/bgYellow.d.ts +15 -0
  81. package/dist/server/colors/bgYellow.js +18 -0
  82. package/dist/server/colors/bgYellow.mjs +18 -0
  83. package/dist/server/colors/bgYellowBright.d.mts +15 -0
  84. package/dist/server/colors/bgYellowBright.d.ts +15 -0
  85. package/dist/server/colors/bgYellowBright.js +18 -0
  86. package/dist/server/colors/bgYellowBright.mjs +18 -0
  87. package/dist/server/colors/black.d.mts +15 -0
  88. package/dist/server/colors/black.d.ts +15 -0
  89. package/dist/server/colors/black.js +18 -0
  90. package/dist/server/colors/black.mjs +18 -0
  91. package/dist/server/colors/blackBright.d.mts +15 -0
  92. package/dist/server/colors/blackBright.d.ts +15 -0
  93. package/dist/server/colors/blackBright.js +18 -0
  94. package/dist/server/colors/blackBright.mjs +18 -0
  95. package/dist/server/colors/blue.d.mts +15 -0
  96. package/dist/server/colors/blue.d.ts +15 -0
  97. package/dist/server/colors/blue.js +18 -0
  98. package/dist/server/colors/blue.mjs +18 -0
  99. package/dist/server/colors/blueBright.d.mts +15 -0
  100. package/dist/server/colors/blueBright.d.ts +15 -0
  101. package/dist/server/colors/blueBright.js +18 -0
  102. package/dist/server/colors/blueBright.mjs +18 -0
  103. package/dist/server/colors/bold.d.mts +15 -0
  104. package/dist/server/colors/bold.d.ts +15 -0
  105. package/dist/server/colors/bold.js +18 -0
  106. package/dist/server/colors/bold.mjs +18 -0
  107. package/dist/server/colors/cyan.d.mts +15 -0
  108. package/dist/server/colors/cyan.d.ts +15 -0
  109. package/dist/server/colors/cyan.js +18 -0
  110. package/dist/server/colors/cyan.mjs +18 -0
  111. package/dist/server/colors/cyanBright.d.mts +15 -0
  112. package/dist/server/colors/cyanBright.d.ts +15 -0
  113. package/dist/server/colors/cyanBright.js +18 -0
  114. package/dist/server/colors/cyanBright.mjs +18 -0
  115. package/dist/server/colors/dim.d.mts +15 -0
  116. package/dist/server/colors/dim.d.ts +15 -0
  117. package/dist/server/colors/dim.js +18 -0
  118. package/dist/server/colors/dim.mjs +18 -0
  119. package/dist/server/colors/gray.js +18 -0
  120. package/dist/server/colors/gray.mjs +19 -0
  121. package/dist/server/colors/green.d.mts +15 -0
  122. package/dist/server/colors/green.d.ts +15 -0
  123. package/dist/server/colors/green.js +18 -0
  124. package/dist/server/colors/green.mjs +18 -0
  125. package/dist/server/colors/greenBright.d.mts +15 -0
  126. package/dist/server/colors/greenBright.d.ts +15 -0
  127. package/dist/server/colors/greenBright.js +18 -0
  128. package/dist/server/colors/greenBright.mjs +18 -0
  129. package/dist/server/colors/hex.d.mts +18 -0
  130. package/dist/server/colors/hex.d.ts +18 -0
  131. package/dist/server/colors/hex.js +21 -0
  132. package/dist/server/colors/hex.mjs +21 -0
  133. package/dist/server/colors/hidden.d.mts +15 -0
  134. package/dist/server/colors/hidden.d.ts +15 -0
  135. package/dist/server/colors/hidden.js +18 -0
  136. package/dist/server/colors/hidden.mjs +18 -0
  137. package/dist/server/colors/index.d.mts +99 -0
  138. package/dist/server/colors/index.d.ts +99 -0
  139. package/dist/server/colors/index.js +99 -0
  140. package/dist/server/colors/index.mjs +99 -0
  141. package/dist/server/colors/inverse.d.mts +15 -0
  142. package/dist/server/colors/inverse.d.ts +15 -0
  143. package/dist/server/colors/inverse.js +18 -0
  144. package/dist/server/colors/inverse.mjs +18 -0
  145. package/dist/server/colors/italic.d.mts +15 -0
  146. package/dist/server/colors/italic.d.ts +15 -0
  147. package/dist/server/colors/italic.js +18 -0
  148. package/dist/server/colors/italic.mjs +18 -0
  149. package/dist/server/colors/magenta.d.mts +15 -0
  150. package/dist/server/colors/magenta.d.ts +15 -0
  151. package/dist/server/colors/magenta.js +18 -0
  152. package/dist/server/colors/magenta.mjs +18 -0
  153. package/dist/server/colors/magentaBright.d.mts +15 -0
  154. package/dist/server/colors/magentaBright.d.ts +15 -0
  155. package/dist/server/colors/magentaBright.js +18 -0
  156. package/dist/server/colors/magentaBright.mjs +18 -0
  157. package/dist/server/colors/red.d.mts +15 -0
  158. package/dist/server/colors/red.d.ts +15 -0
  159. package/dist/server/colors/red.js +18 -0
  160. package/dist/server/colors/red.mjs +18 -0
  161. package/dist/server/colors/redBright.d.mts +15 -0
  162. package/dist/server/colors/redBright.d.ts +15 -0
  163. package/dist/server/colors/redBright.js +18 -0
  164. package/dist/server/colors/redBright.mjs +18 -0
  165. package/dist/server/colors/reset.d.mts +15 -0
  166. package/dist/server/colors/reset.d.ts +15 -0
  167. package/dist/server/colors/reset.js +18 -0
  168. package/dist/server/colors/reset.mjs +18 -0
  169. package/dist/server/colors/rgb.d.mts +20 -0
  170. package/dist/server/colors/rgb.d.ts +20 -0
  171. package/dist/server/colors/rgb.js +21 -0
  172. package/dist/server/colors/rgb.mjs +21 -0
  173. package/dist/server/colors/strikethrough.d.mts +15 -0
  174. package/dist/server/colors/strikethrough.d.ts +15 -0
  175. package/dist/server/colors/strikethrough.js +18 -0
  176. package/dist/server/colors/strikethrough.mjs +18 -0
  177. package/dist/server/colors/types.d.mts +4 -0
  178. package/dist/server/colors/types.d.ts +4 -0
  179. package/dist/server/colors/underline.d.mts +15 -0
  180. package/dist/server/colors/underline.d.ts +15 -0
  181. package/dist/server/colors/underline.js +18 -0
  182. package/dist/server/colors/underline.mjs +18 -0
  183. package/dist/server/colors/white.d.mts +15 -0
  184. package/dist/server/colors/white.d.ts +15 -0
  185. package/dist/server/colors/white.js +18 -0
  186. package/dist/server/colors/white.mjs +18 -0
  187. package/dist/server/colors/whiteBright.d.mts +15 -0
  188. package/dist/server/colors/whiteBright.d.ts +15 -0
  189. package/dist/server/colors/whiteBright.js +18 -0
  190. package/dist/server/colors/whiteBright.mjs +18 -0
  191. package/dist/server/colors/yellow.d.mts +15 -0
  192. package/dist/server/colors/yellow.d.ts +15 -0
  193. package/dist/server/colors/yellow.js +18 -0
  194. package/dist/server/colors/yellow.mjs +18 -0
  195. package/dist/server/colors/yellowBright.d.mts +15 -0
  196. package/dist/server/colors/yellowBright.d.ts +15 -0
  197. package/dist/server/colors/yellowBright.js +18 -0
  198. package/dist/server/colors/yellowBright.mjs +18 -0
  199. package/dist/server/index.d.mts +3 -0
  200. package/dist/server/index.d.ts +3 -0
  201. package/dist/server/index.js +3 -0
  202. package/dist/server/index.mjs +2 -0
  203. package/package.json +22 -1
  204. package/server.d.ts +1 -0
  205. package/server.js +1 -0
@@ -0,0 +1,20 @@
1
+ import { ColorFunction } from "./types.js";
2
+
3
+ //#region src/server/colors/bgRgb.d.ts
4
+ /**
5
+ * Returns a function that wraps text with the given 24-bit (truecolor) background.
6
+ *
7
+ * @param r - Red component (0–255).
8
+ * @param g - Green component (0–255).
9
+ * @param b - Blue component (0–255).
10
+ * @returns A color function that wraps text with the chosen RGB background.
11
+ *
12
+ * @example
13
+ * import { colors } from 'es-toolkit/server';
14
+ *
15
+ * const highlight = colors.bgRgb(255, 99, 71);
16
+ * console.log(highlight('hello'));
17
+ */
18
+ declare function bgRgb(r: number, g: number, b: number): ColorFunction;
19
+ //#endregion
20
+ export { bgRgb };
@@ -0,0 +1,21 @@
1
+ const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
2
+ //#region src/server/colors/bgRgb.ts
3
+ /**
4
+ * Returns a function that wraps text with the given 24-bit (truecolor) background.
5
+ *
6
+ * @param r - Red component (0–255).
7
+ * @param g - Green component (0–255).
8
+ * @param b - Blue component (0–255).
9
+ * @returns A color function that wraps text with the chosen RGB background.
10
+ *
11
+ * @example
12
+ * import { colors } from 'es-toolkit/server';
13
+ *
14
+ * const highlight = colors.bgRgb(255, 99, 71);
15
+ * console.log(highlight('hello'));
16
+ */
17
+ function bgRgb(r, g, b) {
18
+ return (text) => require_wrapAnsiBg.wrapAnsiBg(`\x1b[48;2;${r};${g};${b}m`, "\x1B[49m", text);
19
+ }
20
+ //#endregion
21
+ exports.bgRgb = bgRgb;
@@ -0,0 +1,21 @@
1
+ import { wrapAnsiBg } from "./_internal/wrapAnsiBg.mjs";
2
+ //#region src/server/colors/bgRgb.ts
3
+ /**
4
+ * Returns a function that wraps text with the given 24-bit (truecolor) background.
5
+ *
6
+ * @param r - Red component (0–255).
7
+ * @param g - Green component (0–255).
8
+ * @param b - Blue component (0–255).
9
+ * @returns A color function that wraps text with the chosen RGB background.
10
+ *
11
+ * @example
12
+ * import { colors } from 'es-toolkit/server';
13
+ *
14
+ * const highlight = colors.bgRgb(255, 99, 71);
15
+ * console.log(highlight('hello'));
16
+ */
17
+ function bgRgb(r, g, b) {
18
+ return (text) => wrapAnsiBg(`\x1b[48;2;${r};${g};${b}m`, "\x1B[49m", text);
19
+ }
20
+ //#endregion
21
+ export { bgRgb };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgWhite.d.ts
2
+ /**
3
+ * White background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgWhite('hello'));
12
+ */
13
+ declare function bgWhite(text: string): string;
14
+ //#endregion
15
+ export { bgWhite };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgWhite.d.ts
2
+ /**
3
+ * White background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgWhite('hello'));
12
+ */
13
+ declare function bgWhite(text: string): string;
14
+ //#endregion
15
+ export { bgWhite };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
2
+ //#region src/server/colors/bgWhite.ts
3
+ /**
4
+ * White background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgWhite('hello'));
13
+ */
14
+ function bgWhite(text) {
15
+ return require_wrapAnsiBg.wrapAnsiBg("\x1B[47m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ exports.bgWhite = bgWhite;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsiBg } from "./_internal/wrapAnsiBg.mjs";
2
+ //#region src/server/colors/bgWhite.ts
3
+ /**
4
+ * White background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgWhite('hello'));
13
+ */
14
+ function bgWhite(text) {
15
+ return wrapAnsiBg("\x1B[47m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ export { bgWhite };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgWhiteBright.d.ts
2
+ /**
3
+ * Bright white background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgWhiteBright('hello'));
12
+ */
13
+ declare function bgWhiteBright(text: string): string;
14
+ //#endregion
15
+ export { bgWhiteBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgWhiteBright.d.ts
2
+ /**
3
+ * Bright white background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgWhiteBright('hello'));
12
+ */
13
+ declare function bgWhiteBright(text: string): string;
14
+ //#endregion
15
+ export { bgWhiteBright };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
2
+ //#region src/server/colors/bgWhiteBright.ts
3
+ /**
4
+ * Bright white background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgWhiteBright('hello'));
13
+ */
14
+ function bgWhiteBright(text) {
15
+ return require_wrapAnsiBg.wrapAnsiBg("\x1B[107m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ exports.bgWhiteBright = bgWhiteBright;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsiBg } from "./_internal/wrapAnsiBg.mjs";
2
+ //#region src/server/colors/bgWhiteBright.ts
3
+ /**
4
+ * Bright white background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgWhiteBright('hello'));
13
+ */
14
+ function bgWhiteBright(text) {
15
+ return wrapAnsiBg("\x1B[107m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ export { bgWhiteBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgYellow.d.ts
2
+ /**
3
+ * Yellow background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgYellow('hello'));
12
+ */
13
+ declare function bgYellow(text: string): string;
14
+ //#endregion
15
+ export { bgYellow };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgYellow.d.ts
2
+ /**
3
+ * Yellow background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgYellow('hello'));
12
+ */
13
+ declare function bgYellow(text: string): string;
14
+ //#endregion
15
+ export { bgYellow };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
2
+ //#region src/server/colors/bgYellow.ts
3
+ /**
4
+ * Yellow background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgYellow('hello'));
13
+ */
14
+ function bgYellow(text) {
15
+ return require_wrapAnsiBg.wrapAnsiBg("\x1B[43m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ exports.bgYellow = bgYellow;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsiBg } from "./_internal/wrapAnsiBg.mjs";
2
+ //#region src/server/colors/bgYellow.ts
3
+ /**
4
+ * Yellow background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgYellow('hello'));
13
+ */
14
+ function bgYellow(text) {
15
+ return wrapAnsiBg("\x1B[43m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ export { bgYellow };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgYellowBright.d.ts
2
+ /**
3
+ * Bright yellow background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgYellowBright('hello'));
12
+ */
13
+ declare function bgYellowBright(text: string): string;
14
+ //#endregion
15
+ export { bgYellowBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bgYellowBright.d.ts
2
+ /**
3
+ * Bright yellow background. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bgYellowBright('hello'));
12
+ */
13
+ declare function bgYellowBright(text: string): string;
14
+ //#endregion
15
+ export { bgYellowBright };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsiBg = require("./_internal/wrapAnsiBg.js");
2
+ //#region src/server/colors/bgYellowBright.ts
3
+ /**
4
+ * Bright yellow background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgYellowBright('hello'));
13
+ */
14
+ function bgYellowBright(text) {
15
+ return require_wrapAnsiBg.wrapAnsiBg("\x1B[103m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ exports.bgYellowBright = bgYellowBright;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsiBg } from "./_internal/wrapAnsiBg.mjs";
2
+ //#region src/server/colors/bgYellowBright.ts
3
+ /**
4
+ * Bright yellow background. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.bgYellowBright('hello'));
13
+ */
14
+ function bgYellowBright(text) {
15
+ return wrapAnsiBg("\x1B[103m", "\x1B[49m", text);
16
+ }
17
+ //#endregion
18
+ export { bgYellowBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/black.d.ts
2
+ /**
3
+ * Black foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.black('hello'));
12
+ */
13
+ declare function black(text: string): string;
14
+ //#endregion
15
+ export { black };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/black.d.ts
2
+ /**
3
+ * Black foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.black('hello'));
12
+ */
13
+ declare function black(text: string): string;
14
+ //#endregion
15
+ export { black };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsi = require("./_internal/wrapAnsi.js");
2
+ //#region src/server/colors/black.ts
3
+ /**
4
+ * Black foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.black('hello'));
13
+ */
14
+ function black(text) {
15
+ return require_wrapAnsi.wrapAnsi("\x1B[30m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ exports.black = black;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsi } from "./_internal/wrapAnsi.mjs";
2
+ //#region src/server/colors/black.ts
3
+ /**
4
+ * Black foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.black('hello'));
13
+ */
14
+ function black(text) {
15
+ return wrapAnsi("\x1B[30m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ export { black };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blackBright.d.ts
2
+ /**
3
+ * Bright black (gray) foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blackBright('hello'));
12
+ */
13
+ declare function blackBright(text: string): string;
14
+ //#endregion
15
+ export { blackBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blackBright.d.ts
2
+ /**
3
+ * Bright black (gray) foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blackBright('hello'));
12
+ */
13
+ declare function blackBright(text: string): string;
14
+ //#endregion
15
+ export { blackBright };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsi = require("./_internal/wrapAnsi.js");
2
+ //#region src/server/colors/blackBright.ts
3
+ /**
4
+ * Bright black (gray) foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blackBright('hello'));
13
+ */
14
+ function blackBright(text) {
15
+ return require_wrapAnsi.wrapAnsi("\x1B[90m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ exports.blackBright = blackBright;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsi } from "./_internal/wrapAnsi.mjs";
2
+ //#region src/server/colors/blackBright.ts
3
+ /**
4
+ * Bright black (gray) foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blackBright('hello'));
13
+ */
14
+ function blackBright(text) {
15
+ return wrapAnsi("\x1B[90m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ export { blackBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blue.d.ts
2
+ /**
3
+ * Blue foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blue('hello'));
12
+ */
13
+ declare function blue(text: string): string;
14
+ //#endregion
15
+ export { blue };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blue.d.ts
2
+ /**
3
+ * Blue foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blue('hello'));
12
+ */
13
+ declare function blue(text: string): string;
14
+ //#endregion
15
+ export { blue };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsi = require("./_internal/wrapAnsi.js");
2
+ //#region src/server/colors/blue.ts
3
+ /**
4
+ * Blue foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blue('hello'));
13
+ */
14
+ function blue(text) {
15
+ return require_wrapAnsi.wrapAnsi("\x1B[34m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ exports.blue = blue;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsi } from "./_internal/wrapAnsi.mjs";
2
+ //#region src/server/colors/blue.ts
3
+ /**
4
+ * Blue foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blue('hello'));
13
+ */
14
+ function blue(text) {
15
+ return wrapAnsi("\x1B[34m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ export { blue };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blueBright.d.ts
2
+ /**
3
+ * Bright blue foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blueBright('hello'));
12
+ */
13
+ declare function blueBright(text: string): string;
14
+ //#endregion
15
+ export { blueBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/blueBright.d.ts
2
+ /**
3
+ * Bright blue foreground. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.blueBright('hello'));
12
+ */
13
+ declare function blueBright(text: string): string;
14
+ //#endregion
15
+ export { blueBright };
@@ -0,0 +1,18 @@
1
+ const require_wrapAnsi = require("./_internal/wrapAnsi.js");
2
+ //#region src/server/colors/blueBright.ts
3
+ /**
4
+ * Bright blue foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blueBright('hello'));
13
+ */
14
+ function blueBright(text) {
15
+ return require_wrapAnsi.wrapAnsi("\x1B[94m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ exports.blueBright = blueBright;
@@ -0,0 +1,18 @@
1
+ import { wrapAnsi } from "./_internal/wrapAnsi.mjs";
2
+ //#region src/server/colors/blueBright.ts
3
+ /**
4
+ * Bright blue foreground. Wraps text with ANSI codes.
5
+ *
6
+ * @param text - The text to style.
7
+ * @returns The styled text.
8
+ *
9
+ * @example
10
+ * import { colors } from 'es-toolkit/server';
11
+ *
12
+ * console.log(colors.blueBright('hello'));
13
+ */
14
+ function blueBright(text) {
15
+ return wrapAnsi("\x1B[94m", "\x1B[39m", text);
16
+ }
17
+ //#endregion
18
+ export { blueBright };
@@ -0,0 +1,15 @@
1
+ //#region src/server/colors/bold.d.ts
2
+ /**
3
+ * Bold text. Wraps text with ANSI codes.
4
+ *
5
+ * @param text - The text to style.
6
+ * @returns The styled text.
7
+ *
8
+ * @example
9
+ * import { colors } from 'es-toolkit/server';
10
+ *
11
+ * console.log(colors.bold('hello'));
12
+ */
13
+ declare function bold(text: string): string;
14
+ //#endregion
15
+ export { bold };