@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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## @visulima/colorize [1.4.29](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.28...@visulima/colorize@1.4.29) (2025-11-13)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* bump packem, to fix minified version of the code ([2a36ceb](https://github.com/visulima/visulima/commit/2a36ceb09251b0ca1178701a26547a871ed717a7))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/is-ansi-color-supported:** upgraded to 2.3.5
|
|
11
|
+
|
|
12
|
+
## @visulima/colorize [1.4.28](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.27...@visulima/colorize@1.4.28) (2025-11-12)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* update package configurations and TypeScript definitions ([b59aa59](https://github.com/visulima/visulima/commit/b59aa59dac1508216b944f4b917fb4a7ab1f70a4))
|
|
17
|
+
|
|
18
|
+
### Miscellaneous Chores
|
|
19
|
+
|
|
20
|
+
* Add jsr file to all packages for release ([#565](https://github.com/visulima/visulima/issues/565)) ([ec91652](https://github.com/visulima/visulima/commit/ec91652b4e4112adf14ba152c1239a7703ba425a))
|
|
21
|
+
* update license files and clean up TypeScript definitions ([fe668cc](https://github.com/visulima/visulima/commit/fe668cc26de23591d4df54a0954455ebbe31b22d))
|
|
22
|
+
|
|
23
|
+
### Code Refactoring
|
|
24
|
+
|
|
25
|
+
* **colorize:** simplify TypeScript definitions and remove unused plugin configuration ([fcc0649](https://github.com/visulima/visulima/commit/fcc0649fbedaead34eb090ffb2d3afb2ad3b2fe7))
|
|
26
|
+
|
|
27
|
+
### Tests
|
|
28
|
+
|
|
29
|
+
* **colorize:** correct Colorize function name in test output ([ffee5b4](https://github.com/visulima/visulima/commit/ffee5b4cda5eba7d0f6b116a25e5c5d5d0ed460b))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Dependencies
|
|
33
|
+
|
|
34
|
+
* **@visulima/is-ansi-color-supported:** upgraded to 2.3.4
|
|
35
|
+
|
|
1
36
|
## @visulima/colorize [1.4.27](https://github.com/visulima/visulima/compare/@visulima/colorize@1.4.26...@visulima/colorize@1.4.27) (2025-11-07)
|
|
2
37
|
|
|
3
38
|
### Bug Fixes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.cts";
|
|
9
|
+
export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
|
|
10
|
+
export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
|
|
11
|
+
export declare const styleMethods: {
|
|
12
|
+
bg: (code: number) => ColorData;
|
|
13
|
+
bgHex: (hex: ColorValueHex) => ColorData;
|
|
14
|
+
bgRgb: (r: number, g: number, b: number) => ColorData;
|
|
15
|
+
fg: (code: number) => ColorData;
|
|
16
|
+
hex: (hex: ColorValueHex) => ColorData;
|
|
17
|
+
rgb: (r: number, g: number, b: number) => ColorData;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.mts";
|
|
9
|
+
export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
|
|
10
|
+
export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
|
|
11
|
+
export declare const styleMethods: {
|
|
12
|
+
bg: (code: number) => ColorData;
|
|
13
|
+
bgHex: (hex: ColorValueHex) => ColorData;
|
|
14
|
+
bgRgb: (r: number, g: number, b: number) => ColorData;
|
|
15
|
+
fg: (code: number) => ColorData;
|
|
16
|
+
hex: (hex: ColorValueHex) => ColorData;
|
|
17
|
+
rgb: (r: number, g: number, b: number) => ColorData;
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/ansi-codes.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { AnsiColors, AnsiStyles, ColorData, ColorValueHex } from "./types.d.ts";
|
|
9
|
+
export declare const baseStyles: Required<Record<AnsiStyles, ColorData>>;
|
|
10
|
+
export declare const baseColors: Required<Record<AnsiColors, ColorData>>;
|
|
11
|
+
export declare const styleMethods: {
|
|
12
|
+
bg: (code: number) => ColorData;
|
|
13
|
+
bgHex: (hex: ColorValueHex) => ColorData;
|
|
14
|
+
bgRgb: (r: number, g: number, b: number) => ColorData;
|
|
15
|
+
fg: (code: number) => ColorData;
|
|
16
|
+
hex: (hex: ColorValueHex) => ColorData;
|
|
17
|
+
rgb: (r: number, g: number, b: number) => ColorData;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorizeType } from "./types.d.cts";
|
|
9
|
+
declare const Colorize: new () => ColorizeType;
|
|
10
|
+
export = Colorize;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorizeType } from "./types.d.mts";
|
|
9
|
+
declare const Colorize: new () => ColorizeType;
|
|
10
|
+
export default Colorize;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modified copy of https://github.com/webdiscus/ansis/blob/master/src/index.js
|
|
3
|
+
*
|
|
4
|
+
* ISC License
|
|
5
|
+
*
|
|
6
|
+
* Copyright (c) 2023, webdiscus
|
|
7
|
+
*/
|
|
8
|
+
import type { ColorizeType } from "./types.d.ts";
|
|
9
|
+
declare const Colorize: new () => ColorizeType;
|
|
10
|
+
export = Colorize;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnsiColors, AnsiStyles } from "./types.d.mts";
|
|
2
|
+
export declare const baseStyles: Required<Record<AnsiStyles, string>>;
|
|
3
|
+
export declare const baseColors: Required<Record<AnsiColors, string>>;
|
|
4
|
+
export declare const styleMethods: {
|
|
5
|
+
bg: (code: number) => string;
|
|
6
|
+
bgHex: (hex: string) => string;
|
|
7
|
+
bgRgb: (r: number, g: number, b: number) => string;
|
|
8
|
+
fg: (code: number) => string;
|
|
9
|
+
hex: (hex: string) => string;
|
|
10
|
+
rgb: (r: number, g: number, b: number) => string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.cts";
|
|
2
|
+
export declare class GradientBuilder {
|
|
3
|
+
#private;
|
|
4
|
+
readonly stops: StopOutput[];
|
|
5
|
+
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
6
|
+
reverse(): GradientBuilder;
|
|
7
|
+
loop(): GradientBuilder;
|
|
8
|
+
rgb(steps: number): ColorizeType[];
|
|
9
|
+
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.mts";
|
|
2
|
+
export declare class GradientBuilder {
|
|
3
|
+
#private;
|
|
4
|
+
readonly stops: StopOutput[];
|
|
5
|
+
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
6
|
+
reverse(): GradientBuilder;
|
|
7
|
+
loop(): GradientBuilder;
|
|
8
|
+
rgb(steps: number): ColorizeType[];
|
|
9
|
+
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ColorizeType, ColorValueHex, CssColorName, RGB, StopInput, StopOutput } from "../types.d.ts";
|
|
2
|
+
export declare class GradientBuilder {
|
|
3
|
+
#private;
|
|
4
|
+
readonly stops: StopOutput[];
|
|
5
|
+
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
6
|
+
reverse(): GradientBuilder;
|
|
7
|
+
loop(): GradientBuilder;
|
|
8
|
+
rgb(steps: number): ColorizeType[];
|
|
9
|
+
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RGB, StopOutput } from "../../types.d.cts";
|
|
2
|
+
export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
|
|
3
|
+
export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RGB, StopOutput } from "../../types.d.mts";
|
|
2
|
+
export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
|
|
3
|
+
export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { RGB, StopOutput } from "../../types.d.ts";
|
|
2
|
+
export declare const interpolateRgb: (stop1: StopOutput, stop2: StopOutput, steps: number) => RGB[];
|
|
3
|
+
export declare const interpolateHsv: (stop1: StopOutput, stop2: StopOutput, steps: number, mode: boolean | "long" | "short") => RGB[];
|
package/dist/gradient.d.cts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class GradientBuilder {
|
|
4
|
-
#private;
|
|
5
|
-
readonly stops: StopOutput[];
|
|
6
|
-
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
7
|
-
reverse(): GradientBuilder;
|
|
8
|
-
loop(): GradientBuilder;
|
|
9
|
-
rgb(steps: number): ColorizeType[];
|
|
10
|
-
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
1
|
+
import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.cts";
|
|
2
|
+
export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
14
3
|
hsvSpin?: "long" | "short";
|
|
15
4
|
interpolation?: "hsv" | "rgb";
|
|
16
5
|
loop?: boolean;
|
|
17
6
|
reverse?: boolean;
|
|
18
7
|
}) => (string_: string) => string;
|
|
19
|
-
declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
8
|
+
export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
20
9
|
hsvSpin?: "long" | "short";
|
|
21
10
|
interpolation?: "hsv" | "rgb";
|
|
22
11
|
loop?: boolean;
|
|
23
12
|
reverse?: boolean;
|
|
24
13
|
}) => (string_: string) => string;
|
|
25
|
-
|
|
26
|
-
export { GradientBuilder, gradient, multilineGradient };
|
|
14
|
+
export { GradientBuilder } from "./gradient/gradient-builder.d.cts";
|
package/dist/gradient.d.mts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class GradientBuilder {
|
|
4
|
-
#private;
|
|
5
|
-
readonly stops: StopOutput[];
|
|
6
|
-
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
7
|
-
reverse(): GradientBuilder;
|
|
8
|
-
loop(): GradientBuilder;
|
|
9
|
-
rgb(steps: number): ColorizeType[];
|
|
10
|
-
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
1
|
+
import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.mts";
|
|
2
|
+
export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
14
3
|
hsvSpin?: "long" | "short";
|
|
15
4
|
interpolation?: "hsv" | "rgb";
|
|
16
5
|
loop?: boolean;
|
|
17
6
|
reverse?: boolean;
|
|
18
7
|
}) => (string_: string) => string;
|
|
19
|
-
declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
8
|
+
export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
20
9
|
hsvSpin?: "long" | "short";
|
|
21
10
|
interpolation?: "hsv" | "rgb";
|
|
22
11
|
loop?: boolean;
|
|
23
12
|
reverse?: boolean;
|
|
24
13
|
}) => (string_: string) => string;
|
|
25
|
-
|
|
26
|
-
export { GradientBuilder, gradient, multilineGradient };
|
|
14
|
+
export { GradientBuilder } from "./gradient/gradient-builder.d.mts";
|
package/dist/gradient.d.ts
CHANGED
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
declare class GradientBuilder {
|
|
4
|
-
#private;
|
|
5
|
-
readonly stops: StopOutput[];
|
|
6
|
-
constructor(colorize: ColorizeType, stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[]);
|
|
7
|
-
reverse(): GradientBuilder;
|
|
8
|
-
loop(): GradientBuilder;
|
|
9
|
-
rgb(steps: number): ColorizeType[];
|
|
10
|
-
hsv(steps: number, mode?: boolean | "long" | "short"): ColorizeType[];
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
1
|
+
import type { ColorValueHex, CssColorName, RGB, StopInput } from "./types.d.ts";
|
|
2
|
+
export declare const gradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
14
3
|
hsvSpin?: "long" | "short";
|
|
15
4
|
interpolation?: "hsv" | "rgb";
|
|
16
5
|
loop?: boolean;
|
|
17
6
|
reverse?: boolean;
|
|
18
7
|
}) => (string_: string) => string;
|
|
19
|
-
declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
8
|
+
export declare const multilineGradient: (stops: (ColorValueHex | CssColorName | RGB | StopInput | [number, number, number])[], options?: {
|
|
20
9
|
hsvSpin?: "long" | "short";
|
|
21
10
|
interpolation?: "hsv" | "rgb";
|
|
22
11
|
loop?: boolean;
|
|
23
12
|
reverse?: boolean;
|
|
24
13
|
}) => (string_: string) => string;
|
|
25
|
-
|
|
26
|
-
export { GradientBuilder, gradient, multilineGradient };
|
|
14
|
+
export { GradientBuilder } from "./gradient/gradient-builder.d.ts";
|
package/dist/index.browser.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 WebColorize: 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.browser.mjs
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
1
|
import WebColorize from './packem_shared/Colorize-Ca9CXTcj.mjs';
|
|
2
2
|
|
|
3
3
|
const colorize = new WebColorize();
|
|
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 { WebColorize as 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 };
|