@visulima/colorize 1.4.27 → 1.4.29
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 +35 -0
- package/dist/ansi-codes.d.cts +18 -0
- package/dist/ansi-codes.d.mts +18 -0
- package/dist/ansi-codes.d.ts +18 -0
- package/dist/colorize.browser.d.mts +3 -0
- package/dist/colorize.server.d.cts +10 -0
- package/dist/colorize.server.d.mts +10 -0
- package/dist/colorize.server.d.ts +10 -0
- package/dist/css-code.d.mts +11 -0
- package/dist/gradient/gradient-builder.d.cts +10 -0
- package/dist/gradient/gradient-builder.d.mts +10 -0
- package/dist/gradient/gradient-builder.d.ts +10 -0
- package/dist/gradient/util/color-names.d.cts +2 -0
- package/dist/gradient/util/color-names.d.mts +2 -0
- package/dist/gradient/util/color-names.d.ts +2 -0
- package/dist/gradient/util/compute.d.cts +2 -0
- package/dist/gradient/util/compute.d.mts +2 -0
- package/dist/gradient/util/compute.d.ts +2 -0
- package/dist/gradient/util/hsv-to-rgb.d.cts +5 -0
- package/dist/gradient/util/hsv-to-rgb.d.mts +5 -0
- package/dist/gradient/util/hsv-to-rgb.d.ts +5 -0
- package/dist/gradient/util/interpolate.d.cts +3 -0
- package/dist/gradient/util/interpolate.d.mts +3 -0
- package/dist/gradient/util/interpolate.d.ts +3 -0
- package/dist/gradient/util/rgb-to-hsv.d.cts +9 -0
- package/dist/gradient/util/rgb-to-hsv.d.mts +9 -0
- package/dist/gradient/util/rgb-to-hsv.d.ts +9 -0
- package/dist/gradient.d.cts +4 -16
- package/dist/gradient.d.mts +4 -16
- package/dist/gradient.d.ts +4 -16
- package/dist/index.browser.d.mts +60 -64
- package/dist/index.browser.mjs +56 -58
- package/dist/index.server.cjs +3 -6
- package/dist/index.server.d.cts +7 -73
- package/dist/index.server.d.mts +60 -64
- package/dist/index.server.d.ts +8 -65
- package/dist/index.server.mjs +56 -58
- package/dist/template/make-colorize-template.d.cts +9 -0
- package/dist/template/make-colorize-template.d.mts +9 -0
- package/dist/template/make-colorize-template.d.ts +9 -0
- package/dist/template/make-template.d.cts +10 -0
- package/dist/template/make-template.d.mts +10 -0
- package/dist/template/make-template.d.ts +10 -0
- package/dist/template.cjs +2 -2
- package/dist/template.d.cts +5 -11
- package/dist/template.d.mts +5 -7
- package/dist/template.d.ts +5 -11
- package/dist/template.mjs +2 -2
- package/dist/types.d.cts +174 -0
- package/dist/types.d.mts +174 -0
- package/dist/types.d.ts +174 -0
- package/dist/util/ansi-code-hex-map.d.mts +8 -0
- package/dist/util/clamp.d.cts +12 -0
- package/dist/util/clamp.d.mts +12 -0
- package/dist/util/clamp.d.ts +12 -0
- package/dist/util/convert-hex-to-rgb.d.cts +22 -0
- package/dist/util/convert-hex-to-rgb.d.mts +22 -0
- package/dist/util/convert-hex-to-rgb.d.ts +22 -0
- package/dist/util/convert-rgb-to-ansi.d.cts +18 -0
- package/dist/util/convert-rgb-to-ansi.d.mts +18 -0
- package/dist/util/convert-rgb-to-ansi.d.ts +18 -0
- package/dist/util/string-replace-all.d.cts +12 -0
- package/dist/util/string-replace-all.d.mts +12 -0
- package/dist/util/string-replace-all.d.ts +12 -0
- package/dist/util/unescape.d.cts +9 -0
- package/dist/util/unescape.d.mts +9 -0
- package/dist/util/unescape.d.ts +9 -0
- package/dist/utils.d.cts +2 -9
- package/dist/utils.d.mts +2 -9
- package/dist/utils.d.ts +2 -9
- package/package.json +2 -2
- package/dist/index.browser.d.ts +0 -65
- package/dist/packem_shared/types-CuuGv4d0.d.cts +0 -81
- package/dist/packem_shared/types-CuuGv4d0.d.mts +0 -81
- package/dist/packem_shared/types-CuuGv4d0.d.ts +0 -81
- package/dist/packem_shared/types-M28Oe2t1.d.mts +0 -67
- package/dist/packem_shared/types-M28Oe2t1.d.ts +0 -67
package/dist/index.server.cjs
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
|
-
|
|
5
3
|
const isAnsiColorSupported = require('@visulima/is-ansi-color-supported');
|
|
6
4
|
|
|
7
5
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
@@ -204,7 +202,7 @@ const createStyle = ({ props }, { close, open }) => {
|
|
|
204
202
|
style.close = closeStack;
|
|
205
203
|
return style;
|
|
206
204
|
};
|
|
207
|
-
const Colorize
|
|
205
|
+
const Colorize = function() {
|
|
208
206
|
const self = (string_) => `${string_}`;
|
|
209
207
|
self.strip = (value) => value.replaceAll(ansiRegex(), "");
|
|
210
208
|
for (const name in baseColors) {
|
|
@@ -242,8 +240,7 @@ for (const name in styleMethods) {
|
|
|
242
240
|
styles.ansi256 = styles.fg;
|
|
243
241
|
styles.bgAnsi256 = styles.bg;
|
|
244
242
|
|
|
245
|
-
const colorize = new Colorize
|
|
246
|
-
|
|
243
|
+
const colorize = new Colorize();
|
|
244
|
+
colorize.Colorize = Colorize;
|
|
247
245
|
|
|
248
246
|
module.exports = colorize;
|
|
249
|
-
module.exports.Colorize = Colorize;
|
package/dist/index.server.d.cts
CHANGED
|
@@ -1,74 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
(string: number | string): string;
|
|
8
|
-
(string: TemplateStringsArray, ...parameters: string[]): string;
|
|
9
|
-
ansi256: (code: number) => this;
|
|
10
|
-
bg: (code: number) => this;
|
|
11
|
-
bgAnsi256: (code: number) => this;
|
|
12
|
-
readonly bgBlack: this;
|
|
13
|
-
readonly bgBlackBright: this;
|
|
14
|
-
readonly bgBlue: this;
|
|
15
|
-
readonly bgBlueBright: this;
|
|
16
|
-
readonly bgCyan: this;
|
|
17
|
-
readonly bgCyanBright: this;
|
|
18
|
-
readonly bgGray: this;
|
|
19
|
-
readonly bgGreen: this;
|
|
20
|
-
readonly bgGreenBright: this;
|
|
21
|
-
readonly bgGrey: this;
|
|
22
|
-
bgHex: (color: ColorValueHex) => this;
|
|
23
|
-
readonly bgMagenta: this;
|
|
24
|
-
readonly bgMagentaBright: this;
|
|
25
|
-
readonly bgRed: this;
|
|
26
|
-
readonly bgRedBright: this;
|
|
27
|
-
bgRgb: (red: number, green: number, blue: number) => this;
|
|
28
|
-
readonly bgWhite: this;
|
|
29
|
-
readonly bgWhiteBright: this;
|
|
30
|
-
readonly bgYellow: this;
|
|
31
|
-
readonly bgYellowBright: this;
|
|
32
|
-
readonly black: this;
|
|
33
|
-
readonly blackBright: this;
|
|
34
|
-
readonly blue: this;
|
|
35
|
-
readonly blueBright: this;
|
|
36
|
-
readonly bold: this;
|
|
37
|
-
readonly close: string;
|
|
38
|
-
readonly cyan: this;
|
|
39
|
-
readonly cyanBright: this;
|
|
40
|
-
readonly dim: this;
|
|
41
|
-
fg: (code: number) => this;
|
|
42
|
-
readonly gray: this;
|
|
43
|
-
readonly green: this;
|
|
44
|
-
readonly greenBright: this;
|
|
45
|
-
readonly grey: this;
|
|
46
|
-
hex: (color: ColorValueHex) => this;
|
|
47
|
-
readonly hidden: this;
|
|
48
|
-
readonly inverse: this;
|
|
49
|
-
readonly italic: this;
|
|
50
|
-
readonly magenta: this;
|
|
51
|
-
readonly magentaBright: this;
|
|
52
|
-
readonly open: string;
|
|
53
|
-
readonly overline: this;
|
|
54
|
-
readonly red: this;
|
|
55
|
-
readonly redBright: this;
|
|
56
|
-
readonly reset: this;
|
|
57
|
-
rgb: (red: number, green: number, blue: number) => this;
|
|
58
|
-
readonly strike: this;
|
|
59
|
-
readonly strikethrough: this;
|
|
60
|
-
strip: (string: string) => string;
|
|
61
|
-
readonly underline: this;
|
|
62
|
-
readonly visible: this;
|
|
63
|
-
readonly white: this;
|
|
64
|
-
readonly whiteBright: this;
|
|
65
|
-
readonly yellow: this;
|
|
66
|
-
readonly yellowBright: this; }
|
|
67
|
-
export type AnsiStyles = "bold" | "dim" | "hidden" | "inverse" | "italic" | "overline" | "reset" | "strike" | "strikethrough" | "underline" | "visible";
|
|
68
|
-
export type AnsiColors = "bgBlack" | "bgBlackBright" | "bgBlue" | "bgBlueBright" | "bgCyan" | "bgCyanBright" | "bgGray" | "bgGreen" | "bgGreenBright" | "bgGrey" | "bgMagenta" | "bgMagentaBright" | "bgRed" | "bgRedBright" | "bgWhite" | "bgWhiteBright" | "bgYellow" | "bgYellowBright" | "black" | "blackBright" | "blue" | "blueBright" | "cyan" | "cyanBright" | "gray" | "green" | "greenBright" | "grey" | "magenta" | "magentaBright" | "red" | "redBright" | "white" | "whiteBright" | "yellow" | "yellowBright";
|
|
69
|
-
export const _default: ColorizeType;
|
|
70
|
-
export const Colorize: new () => ColorizeType;
|
|
71
|
-
import _default = _default;
|
|
72
|
-
export { _default as default };
|
|
73
|
-
}
|
|
1
|
+
import ColorizeImpl from "./colorize.d.cts";
|
|
2
|
+
import type { ColorizeType } from "./types.d.cts";
|
|
3
|
+
type ColorizeTypeWithColorize = ColorizeType & {
|
|
4
|
+
Colorize: typeof ColorizeImpl;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: ColorizeTypeWithColorize;
|
|
74
7
|
export = _default;
|
|
8
|
+
export type { AnsiColors, AnsiStyles, ColorizeType } from "./types.d.cts";
|
package/dist/index.server.d.mts
CHANGED
|
@@ -1,65 +1,61 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as AnsiColors, b as AnsiStyles } from './packem_shared/types-M28Oe2t1.mjs';
|
|
3
|
-
|
|
4
|
-
declare const Colorize: new () => ColorizeType;
|
|
5
|
-
|
|
1
|
+
import type { ColorizeType, ColorValueHex } from "./types.d.mts";
|
|
6
2
|
declare const _default: ColorizeType;
|
|
7
|
-
|
|
8
|
-
declare const ansi256: (code: number) => ColorizeType;
|
|
9
|
-
declare const bg: (code: number) => ColorizeType;
|
|
10
|
-
declare const bgAnsi256: (code: number) => ColorizeType;
|
|
11
|
-
declare const
|
|
12
|
-
declare const
|
|
13
|
-
declare const
|
|
14
|
-
declare const
|
|
15
|
-
declare const
|
|
16
|
-
declare const
|
|
17
|
-
declare const
|
|
18
|
-
declare const
|
|
19
|
-
declare const
|
|
20
|
-
declare const
|
|
21
|
-
declare const
|
|
22
|
-
declare const
|
|
23
|
-
declare const
|
|
24
|
-
declare const
|
|
25
|
-
declare const
|
|
26
|
-
declare const
|
|
27
|
-
declare const
|
|
28
|
-
declare const
|
|
29
|
-
declare const
|
|
30
|
-
declare const
|
|
31
|
-
declare const
|
|
32
|
-
declare const
|
|
33
|
-
declare const
|
|
34
|
-
declare const
|
|
35
|
-
declare const
|
|
36
|
-
declare const
|
|
37
|
-
declare const
|
|
38
|
-
declare const
|
|
39
|
-
declare const
|
|
40
|
-
declare const
|
|
41
|
-
declare const
|
|
42
|
-
declare const
|
|
43
|
-
declare const
|
|
44
|
-
declare const
|
|
45
|
-
declare const
|
|
46
|
-
declare const
|
|
47
|
-
declare const
|
|
48
|
-
declare const
|
|
49
|
-
declare const
|
|
50
|
-
declare const
|
|
51
|
-
declare const
|
|
52
|
-
declare const
|
|
53
|
-
declare const
|
|
54
|
-
declare const
|
|
55
|
-
declare const
|
|
56
|
-
declare const
|
|
57
|
-
declare const
|
|
58
|
-
declare const underline: ColorizeType;
|
|
59
|
-
declare const visible: ColorizeType;
|
|
60
|
-
declare const white: ColorizeType;
|
|
61
|
-
declare const whiteBright: ColorizeType;
|
|
62
|
-
declare const yellow: ColorizeType;
|
|
63
|
-
declare const yellowBright: ColorizeType;
|
|
64
|
-
|
|
65
|
-
export {
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const ansi256: (code: number) => ColorizeType;
|
|
5
|
+
export declare const bg: (code: number) => ColorizeType;
|
|
6
|
+
export declare const bgAnsi256: (code: number) => ColorizeType;
|
|
7
|
+
export declare const bgHex: (color: ColorValueHex) => ColorizeType;
|
|
8
|
+
export declare const bgRgb: (red: number, green: number, blue: number) => ColorizeType;
|
|
9
|
+
export declare const fg: (code: number) => ColorizeType;
|
|
10
|
+
export declare const hex: (color: ColorValueHex) => ColorizeType;
|
|
11
|
+
export declare const rgb: (red: number, green: number, blue: number) => ColorizeType;
|
|
12
|
+
export declare const strip: (string: string) => string;
|
|
13
|
+
export declare const bgBlack: ColorizeType;
|
|
14
|
+
export declare const bgBlackBright: ColorizeType;
|
|
15
|
+
export declare const bgBlue: ColorizeType;
|
|
16
|
+
export declare const bgBlueBright: ColorizeType;
|
|
17
|
+
export declare const bgCyan: ColorizeType;
|
|
18
|
+
export declare const bgCyanBright: ColorizeType;
|
|
19
|
+
export declare const bgGray: ColorizeType;
|
|
20
|
+
export declare const bgGreen: ColorizeType;
|
|
21
|
+
export declare const bgGreenBright: ColorizeType;
|
|
22
|
+
export declare const bgGrey: ColorizeType;
|
|
23
|
+
export declare const bgMagenta: ColorizeType;
|
|
24
|
+
export declare const bgMagentaBright: ColorizeType;
|
|
25
|
+
export declare const bgRed: ColorizeType;
|
|
26
|
+
export declare const bgRedBright: ColorizeType;
|
|
27
|
+
export declare const bgWhite: ColorizeType;
|
|
28
|
+
export declare const bgWhiteBright: ColorizeType;
|
|
29
|
+
export declare const bgYellow: ColorizeType;
|
|
30
|
+
export declare const bgYellowBright: ColorizeType;
|
|
31
|
+
export declare const black: ColorizeType;
|
|
32
|
+
export declare const blackBright: ColorizeType;
|
|
33
|
+
export declare const blue: ColorizeType;
|
|
34
|
+
export declare const blueBright: ColorizeType;
|
|
35
|
+
export declare const bold: ColorizeType;
|
|
36
|
+
export declare const cyan: ColorizeType;
|
|
37
|
+
export declare const cyanBright: ColorizeType;
|
|
38
|
+
export declare const dim: ColorizeType;
|
|
39
|
+
export declare const gray: ColorizeType;
|
|
40
|
+
export declare const green: ColorizeType;
|
|
41
|
+
export declare const greenBright: ColorizeType;
|
|
42
|
+
export declare const grey: ColorizeType;
|
|
43
|
+
export declare const hidden: ColorizeType;
|
|
44
|
+
export declare const inverse: ColorizeType;
|
|
45
|
+
export declare const italic: ColorizeType;
|
|
46
|
+
export declare const magenta: ColorizeType;
|
|
47
|
+
export declare const magentaBright: ColorizeType;
|
|
48
|
+
export declare const overline: ColorizeType;
|
|
49
|
+
export declare const red: ColorizeType;
|
|
50
|
+
export declare const redBright: ColorizeType;
|
|
51
|
+
export declare const reset: ColorizeType;
|
|
52
|
+
export declare const strike: ColorizeType;
|
|
53
|
+
export declare const strikethrough: ColorizeType;
|
|
54
|
+
export declare const underline: ColorizeType;
|
|
55
|
+
export declare const visible: ColorizeType;
|
|
56
|
+
export declare const white: ColorizeType;
|
|
57
|
+
export declare const whiteBright: ColorizeType;
|
|
58
|
+
export declare const yellow: ColorizeType;
|
|
59
|
+
export declare const yellowBright: ColorizeType;
|
|
60
|
+
export { default as Colorize } from "./colorize.d.mts";
|
|
61
|
+
export type { AnsiColors, AnsiStyles, ColorizeType } from "./types.d.mts";
|
package/dist/index.server.d.ts
CHANGED
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
declare const _default:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
declare const bg: (code: number) => ColorizeType;
|
|
10
|
-
declare const bgAnsi256: (code: number) => ColorizeType;
|
|
11
|
-
declare const bgBlack: ColorizeType;
|
|
12
|
-
declare const bgBlackBright: ColorizeType;
|
|
13
|
-
declare const bgBlue: ColorizeType;
|
|
14
|
-
declare const bgBlueBright: ColorizeType;
|
|
15
|
-
declare const bgCyan: ColorizeType;
|
|
16
|
-
declare const bgCyanBright: ColorizeType;
|
|
17
|
-
declare const bgGray: ColorizeType;
|
|
18
|
-
declare const bgGreen: ColorizeType;
|
|
19
|
-
declare const bgGreenBright: ColorizeType;
|
|
20
|
-
declare const bgGrey: ColorizeType;
|
|
21
|
-
declare const bgHex: (color: ColorValueHex) => ColorizeType;
|
|
22
|
-
declare const bgMagenta: ColorizeType;
|
|
23
|
-
declare const bgMagentaBright: ColorizeType;
|
|
24
|
-
declare const bgRed: ColorizeType;
|
|
25
|
-
declare const bgRedBright: ColorizeType;
|
|
26
|
-
declare const bgRgb: (red: number, green: number, blue: number) => ColorizeType;
|
|
27
|
-
declare const bgWhite: ColorizeType;
|
|
28
|
-
declare const bgWhiteBright: ColorizeType;
|
|
29
|
-
declare const bgYellow: ColorizeType;
|
|
30
|
-
declare const bgYellowBright: ColorizeType;
|
|
31
|
-
declare const black: ColorizeType;
|
|
32
|
-
declare const blackBright: ColorizeType;
|
|
33
|
-
declare const blue: ColorizeType;
|
|
34
|
-
declare const blueBright: ColorizeType;
|
|
35
|
-
declare const bold: ColorizeType;
|
|
36
|
-
declare const cyan: ColorizeType;
|
|
37
|
-
declare const cyanBright: ColorizeType;
|
|
38
|
-
declare const dim: ColorizeType;
|
|
39
|
-
declare const fg: (code: number) => ColorizeType;
|
|
40
|
-
declare const gray: ColorizeType;
|
|
41
|
-
declare const green: ColorizeType;
|
|
42
|
-
declare const greenBright: ColorizeType;
|
|
43
|
-
declare const grey: ColorizeType;
|
|
44
|
-
declare const hex: (color: ColorValueHex) => ColorizeType;
|
|
45
|
-
declare const hidden: ColorizeType;
|
|
46
|
-
declare const inverse: ColorizeType;
|
|
47
|
-
declare const italic: ColorizeType;
|
|
48
|
-
declare const magenta: ColorizeType;
|
|
49
|
-
declare const magentaBright: ColorizeType;
|
|
50
|
-
declare const overline: ColorizeType;
|
|
51
|
-
declare const red: ColorizeType;
|
|
52
|
-
declare const redBright: ColorizeType;
|
|
53
|
-
declare const reset: ColorizeType;
|
|
54
|
-
declare const rgb: (red: number, green: number, blue: number) => ColorizeType;
|
|
55
|
-
declare const strike: ColorizeType;
|
|
56
|
-
declare const strikethrough: ColorizeType;
|
|
57
|
-
declare const strip: (string: string) => string;
|
|
58
|
-
declare const underline: ColorizeType;
|
|
59
|
-
declare const visible: ColorizeType;
|
|
60
|
-
declare const white: ColorizeType;
|
|
61
|
-
declare const whiteBright: ColorizeType;
|
|
62
|
-
declare const yellow: ColorizeType;
|
|
63
|
-
declare const yellowBright: ColorizeType;
|
|
64
|
-
|
|
65
|
-
export { Colorize, ColorizeType, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, _default as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
|
|
1
|
+
import ColorizeImpl from "./colorize.d.ts";
|
|
2
|
+
import type { ColorizeType } from "./types.d.ts";
|
|
3
|
+
type ColorizeTypeWithColorize = ColorizeType & {
|
|
4
|
+
Colorize: typeof ColorizeImpl;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: ColorizeTypeWithColorize;
|
|
7
|
+
export = _default;
|
|
8
|
+
export type { AnsiColors, AnsiStyles, ColorizeType } from "./types.d.ts";
|
package/dist/index.server.mjs
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
1
|
import Colorize from './packem_shared/Colorize-BenP3bFn.mjs';
|
|
2
2
|
|
|
3
3
|
const colorize = new Colorize();
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
yellowBright
|
|
61
|
-
} = colorize;
|
|
4
|
+
const ansi256 = colorize.ansi256;
|
|
5
|
+
const bg = colorize.bg;
|
|
6
|
+
const bgAnsi256 = colorize.bgAnsi256;
|
|
7
|
+
const bgHex = colorize.bgHex;
|
|
8
|
+
const bgRgb = colorize.bgRgb;
|
|
9
|
+
const fg = colorize.fg;
|
|
10
|
+
const hex = colorize.hex;
|
|
11
|
+
const rgb = colorize.rgb;
|
|
12
|
+
const strip = colorize.strip;
|
|
13
|
+
const bgBlack = colorize.bgBlack;
|
|
14
|
+
const bgBlackBright = colorize.bgBlackBright;
|
|
15
|
+
const bgBlue = colorize.bgBlue;
|
|
16
|
+
const bgBlueBright = colorize.bgBlueBright;
|
|
17
|
+
const bgCyan = colorize.bgCyan;
|
|
18
|
+
const bgCyanBright = colorize.bgCyanBright;
|
|
19
|
+
const bgGray = colorize.bgGray;
|
|
20
|
+
const bgGreen = colorize.bgGreen;
|
|
21
|
+
const bgGreenBright = colorize.bgGreenBright;
|
|
22
|
+
const bgGrey = colorize.bgGrey;
|
|
23
|
+
const bgMagenta = colorize.bgMagenta;
|
|
24
|
+
const bgMagentaBright = colorize.bgMagentaBright;
|
|
25
|
+
const bgRed = colorize.bgRed;
|
|
26
|
+
const bgRedBright = colorize.bgRedBright;
|
|
27
|
+
const bgWhite = colorize.bgWhite;
|
|
28
|
+
const bgWhiteBright = colorize.bgWhiteBright;
|
|
29
|
+
const bgYellow = colorize.bgYellow;
|
|
30
|
+
const bgYellowBright = colorize.bgYellowBright;
|
|
31
|
+
const black = colorize.black;
|
|
32
|
+
const blackBright = colorize.blackBright;
|
|
33
|
+
const blue = colorize.blue;
|
|
34
|
+
const blueBright = colorize.blueBright;
|
|
35
|
+
const bold = colorize.bold;
|
|
36
|
+
const cyan = colorize.cyan;
|
|
37
|
+
const cyanBright = colorize.cyanBright;
|
|
38
|
+
const dim = colorize.dim;
|
|
39
|
+
const gray = colorize.gray;
|
|
40
|
+
const green = colorize.green;
|
|
41
|
+
const greenBright = colorize.greenBright;
|
|
42
|
+
const grey = colorize.grey;
|
|
43
|
+
const hidden = colorize.hidden;
|
|
44
|
+
const inverse = colorize.inverse;
|
|
45
|
+
const italic = colorize.italic;
|
|
46
|
+
const magenta = colorize.magenta;
|
|
47
|
+
const magentaBright = colorize.magentaBright;
|
|
48
|
+
const overline = colorize.overline;
|
|
49
|
+
const red = colorize.red;
|
|
50
|
+
const redBright = colorize.redBright;
|
|
51
|
+
const reset = colorize.reset;
|
|
52
|
+
const strike = colorize.strike;
|
|
53
|
+
const strikethrough = colorize.strikethrough;
|
|
54
|
+
const underline = colorize.underline;
|
|
55
|
+
const visible = colorize.visible;
|
|
56
|
+
const white = colorize.white;
|
|
57
|
+
const whiteBright = colorize.whiteBright;
|
|
58
|
+
const yellow = colorize.yellow;
|
|
59
|
+
const yellowBright = colorize.yellowBright;
|
|
62
60
|
|
|
63
61
|
export { Colorize, ansi256, bg, bgAnsi256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGray, bgGreen, bgGreenBright, bgGrey, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blue, blueBright, bold, cyan, cyanBright, colorize as default, dim, fg, gray, green, greenBright, grey, hex, hidden, inverse, italic, magenta, magentaBright, overline, red, redBright, reset, rgb, strike, strikethrough, strip, underline, visible, white, whiteBright, yellow, yellowBright };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
export declare const makeColorizeTemplate: (template: (text: string) => string) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
export declare const makeColorizeTemplate: (template: (text: string) => string) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
export declare const makeColorizeTemplate: (template: (text: string) => string) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorizeType } from "../types.d.cts";
|
|
10
|
+
export declare const makeTemplate: (colorize: ColorizeType) => (string: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorizeType } from "../types.d.mts";
|
|
10
|
+
export declare const makeTemplate: (colorize: ColorizeType) => (string: string) => string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/chalk/chalk-template/blob/main/index.js
|
|
3
|
+
*
|
|
4
|
+
* MIT License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) Josh Junon
|
|
7
|
+
* Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
8
|
+
*/
|
|
9
|
+
import type { ColorizeType } from "../types.d.ts";
|
|
10
|
+
export declare const makeTemplate: (colorize: ColorizeType) => (string: string) => string;
|
package/dist/template.cjs
CHANGED
|
@@ -137,8 +137,8 @@ const makeTemplate = (colorize) => (string) => {
|
|
|
137
137
|
const colorize = new colorize_server.Colorize();
|
|
138
138
|
const makeTaggedTemplate = (instance) => makeColorizeTemplate(makeTemplate(instance));
|
|
139
139
|
const template = makeTemplate(colorize);
|
|
140
|
-
const
|
|
140
|
+
const templateFunction = makeColorizeTemplate(template);
|
|
141
141
|
|
|
142
|
-
module.exports =
|
|
142
|
+
module.exports = templateFunction;
|
|
143
143
|
module.exports.makeTaggedTemplate = makeTaggedTemplate;
|
|
144
144
|
module.exports.template = template;
|
package/dist/template.d.cts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
export const template: (string: string) => string;
|
|
7
|
-
export const _default: (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
8
|
-
import _default = _default;
|
|
9
|
-
export { _default as default };
|
|
10
|
-
}
|
|
11
|
-
export = _default;
|
|
1
|
+
import type { ColorizeType } from "./types.d.cts";
|
|
2
|
+
export declare const makeTaggedTemplate: (instance: ColorizeType) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
3
|
+
export declare const template: (string: string) => string;
|
|
4
|
+
declare const templateFunction: (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
5
|
+
export = templateFunction;
|
package/dist/template.d.mts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare const
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
export { _default as default, makeTaggedTemplate, template };
|
|
1
|
+
import type { ColorizeType } from "./types.d.mts";
|
|
2
|
+
export declare const makeTaggedTemplate: (instance: ColorizeType) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
3
|
+
export declare const template: (string: string) => string;
|
|
4
|
+
declare const templateFunction: (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
5
|
+
export default templateFunction;
|
package/dist/template.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
declare
|
|
5
|
-
|
|
6
|
-
export const template: (string: string) => string;
|
|
7
|
-
export const _default: (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
8
|
-
import _default = _default;
|
|
9
|
-
export { _default as default };
|
|
10
|
-
}
|
|
11
|
-
export = _default;
|
|
1
|
+
import type { ColorizeType } from "./types.d.ts";
|
|
2
|
+
export declare const makeTaggedTemplate: (instance: ColorizeType) => (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
3
|
+
export declare const template: (string: string) => string;
|
|
4
|
+
declare const templateFunction: (firstString: TemplateStringsArray, ...arguments_: any[]) => string;
|
|
5
|
+
export = templateFunction;
|
package/dist/template.mjs
CHANGED
|
@@ -133,6 +133,6 @@ const makeTemplate = (colorize) => (string) => {
|
|
|
133
133
|
const colorize = new Colorize();
|
|
134
134
|
const makeTaggedTemplate = (instance) => makeColorizeTemplate(makeTemplate(instance));
|
|
135
135
|
const template = makeTemplate(colorize);
|
|
136
|
-
const
|
|
136
|
+
const templateFunction = makeColorizeTemplate(template);
|
|
137
137
|
|
|
138
|
-
export {
|
|
138
|
+
export { templateFunction as default, makeTaggedTemplate, template };
|