stain 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/constants.d.cts +30 -13
- package/dist/constants.d.mts +30 -13
- package/dist/constants.d.ts +30 -13
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.cjs +92 -14
- package/dist/index.cjs.map +6 -5
- package/dist/index.d.cts +13 -30
- package/dist/index.d.mts +13 -30
- package/dist/index.d.ts +13 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +92 -14
- package/dist/index.js.map +6 -5
- package/dist/types.d.cts +116 -0
- package/dist/types.d.mts +116 -0
- package/dist/types.d.ts +116 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/utils.d.cts +19 -0
- package/dist/utils.d.mts +19 -0
- package/dist/utils.d.ts +19 -0
- package/dist/utils.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/** @about
|
|
2
|
+
@file: types.ts
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
EmptyObject,
|
|
6
|
+
StrNum,
|
|
7
|
+
TupleN,
|
|
8
|
+
ColorSpace,
|
|
9
|
+
StyleKeys,
|
|
10
|
+
XtermKeysFactory,
|
|
11
|
+
AnsiCodeTuple,
|
|
12
|
+
StyleState,
|
|
13
|
+
StainBase,
|
|
14
|
+
StainAnsi,
|
|
15
|
+
StainXterm,
|
|
16
|
+
} from './types.ts'
|
|
17
|
+
|
|
18
|
+
*** */
|
|
19
|
+
/**
|
|
20
|
+
* empty object utility type for representing no keys
|
|
21
|
+
*/
|
|
22
|
+
export type EmptyObject = Record<never, never>;
|
|
23
|
+
/**
|
|
24
|
+
* string or number shorthand
|
|
25
|
+
*/
|
|
26
|
+
export type StrNum = string | number;
|
|
27
|
+
/**
|
|
28
|
+
* helper to make tuple of N elements of type T
|
|
29
|
+
* @template N - tuple length (number literal type)
|
|
30
|
+
* @template T - element type (default: string)
|
|
31
|
+
*/
|
|
32
|
+
export type TupleN<N extends number, T = string, Acc extends T[] = []> = Acc['length'] extends N ? Acc : TupleN<N, T, [...Acc, T]>;
|
|
33
|
+
/**
|
|
34
|
+
* color support level
|
|
35
|
+
* @default 2
|
|
36
|
+
* @see {@link https://nodejs.org/api/cli.html#force_color1-2-3|Node.js FORCE_COLOR docs}
|
|
37
|
+
*/
|
|
38
|
+
export type ColorSpace = 0 | 1 | 2;
|
|
39
|
+
/**
|
|
40
|
+
* Style state keys
|
|
41
|
+
* fg=foreground; bg=background;
|
|
42
|
+
* ft=font; ue=underline; ie=inverse; re=reset;
|
|
43
|
+
* pr=previous (internal state)
|
|
44
|
+
*/
|
|
45
|
+
export type StyleKeys = 'fg' | 'bg' | 'ft' | 'ue' | 'ie' | 're' | 'pr';
|
|
46
|
+
/**
|
|
47
|
+
* Generate xterms: x0 to x255
|
|
48
|
+
*/
|
|
49
|
+
export type XtermKeysFactory<N extends number, Acc extends string[] = []> = Acc['length'] extends N ? Acc[number] : XtermKeysFactory<N, [...Acc, `x${Acc['length']}`]>;
|
|
50
|
+
/**
|
|
51
|
+
* tuple describing ansi on and off codes with optional flag for custom or xterm usage
|
|
52
|
+
* @typedef {readonly [number, number, number?]} AnsiCodeTuple
|
|
53
|
+
* on index 0 is the open code
|
|
54
|
+
* off index 1 is the close code
|
|
55
|
+
* isCustom index 2 indicates xterm or custom when truthy
|
|
56
|
+
*/
|
|
57
|
+
export type AnsiCodeTuple = [on: number, off: number, isCustom?: number];
|
|
58
|
+
/**
|
|
59
|
+
* partial style state map for assembling ansi sequences
|
|
60
|
+
* keys may include fg bg ft ue ie re pr
|
|
61
|
+
*/
|
|
62
|
+
export type StyleState = Partial<Record<StyleKeys, AnsiCodeTuple>>;
|
|
63
|
+
/**
|
|
64
|
+
* base named colors supported by ansi
|
|
65
|
+
*/
|
|
66
|
+
export type StainBase = 'black' | 'blue' | 'cyan' | 'green' | 'purple' | 'red' | 'white' | 'yellow';
|
|
67
|
+
/**
|
|
68
|
+
* named ansi colors including intense variants prefixed with i (ired for bright red)
|
|
69
|
+
*/
|
|
70
|
+
export type StainAnsi = StainBase | `i${StainBase}`;
|
|
71
|
+
/**
|
|
72
|
+
* xterm color keys generated as x0..x255
|
|
73
|
+
*/
|
|
74
|
+
export type StainXterm = XtermKeysFactory<256>;
|
|
75
|
+
/**
|
|
76
|
+
* chainable stain api type
|
|
77
|
+
* callable to format input into a string and exposes chainable style and color properties
|
|
78
|
+
* includes bg bold dim normal reset underline inverse and color names
|
|
79
|
+
* includes xterm colors when enabled and custom colors from options
|
|
80
|
+
* @template C extends Record<string, number> custom color map type
|
|
81
|
+
* @template X extends boolean whether xterm is enabled
|
|
82
|
+
*/
|
|
83
|
+
export type Stain<C extends Record<string, number> = EmptyObject, X extends boolean = false> = ((...args: any[]) => string) & {
|
|
84
|
+
bg: Stain<C, X>;
|
|
85
|
+
bold: Stain<C, X>;
|
|
86
|
+
dim: Stain<C, X>;
|
|
87
|
+
normal: Stain<C, X>;
|
|
88
|
+
reset: Stain<C, X>;
|
|
89
|
+
underline: Stain<C, X>;
|
|
90
|
+
inverse: Stain<C, X>;
|
|
91
|
+
} & {
|
|
92
|
+
[K in StainAnsi]: Stain<C, X>;
|
|
93
|
+
} & (X extends true ? {
|
|
94
|
+
[K in StainXterm]: Stain<C, X>;
|
|
95
|
+
} : EmptyObject) & (keyof C extends never ? EmptyObject : {
|
|
96
|
+
[K in keyof C]: Stain<C, X>;
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* options for creating a stain instance
|
|
100
|
+
* @template C extends Record<string, number> custom color map type
|
|
101
|
+
* @property {(...args: any[]) => string} [format] custom formatter for args to string
|
|
102
|
+
* @property {boolean} [noColor] disable color output
|
|
103
|
+
* @property {boolean} [xterm] enable xterm 256 color support
|
|
104
|
+
* @property {C} [colors] custom color name to code map
|
|
105
|
+
* @property {boolean} [simpleEscape] use faster simpler escape without nested handling
|
|
106
|
+
* @property {ColorSpace} [colorSpace] force color space, used primarly for testing
|
|
107
|
+
*/
|
|
108
|
+
export type StainOpts<C extends Record<string, number> = EmptyObject> = {
|
|
109
|
+
format?: (...args: any[]) => string;
|
|
110
|
+
noColor?: boolean;
|
|
111
|
+
xterm?: boolean;
|
|
112
|
+
colors?: C;
|
|
113
|
+
simpleEscape?: boolean;
|
|
114
|
+
colorSpace?: ColorSpace;
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=types.d.ts.map
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/** @about
|
|
2
|
+
@file: types.ts
|
|
3
|
+
|
|
4
|
+
import type {
|
|
5
|
+
EmptyObject,
|
|
6
|
+
StrNum,
|
|
7
|
+
TupleN,
|
|
8
|
+
ColorSpace,
|
|
9
|
+
StyleKeys,
|
|
10
|
+
XtermKeysFactory,
|
|
11
|
+
AnsiCodeTuple,
|
|
12
|
+
StyleState,
|
|
13
|
+
StainBase,
|
|
14
|
+
StainAnsi,
|
|
15
|
+
StainXterm,
|
|
16
|
+
} from './types.ts'
|
|
17
|
+
|
|
18
|
+
*** */
|
|
19
|
+
/**
|
|
20
|
+
* empty object utility type for representing no keys
|
|
21
|
+
*/
|
|
22
|
+
export type EmptyObject = Record<never, never>;
|
|
23
|
+
/**
|
|
24
|
+
* string or number shorthand
|
|
25
|
+
*/
|
|
26
|
+
export type StrNum = string | number;
|
|
27
|
+
/**
|
|
28
|
+
* helper to make tuple of N elements of type T
|
|
29
|
+
* @template N - tuple length (number literal type)
|
|
30
|
+
* @template T - element type (default: string)
|
|
31
|
+
*/
|
|
32
|
+
export type TupleN<N extends number, T = string, Acc extends T[] = []> = Acc['length'] extends N ? Acc : TupleN<N, T, [...Acc, T]>;
|
|
33
|
+
/**
|
|
34
|
+
* color support level
|
|
35
|
+
* @default 2
|
|
36
|
+
* @see {@link https://nodejs.org/api/cli.html#force_color1-2-3|Node.js FORCE_COLOR docs}
|
|
37
|
+
*/
|
|
38
|
+
export type ColorSpace = 0 | 1 | 2;
|
|
39
|
+
/**
|
|
40
|
+
* Style state keys
|
|
41
|
+
* fg=foreground; bg=background;
|
|
42
|
+
* ft=font; ue=underline; ie=inverse; re=reset;
|
|
43
|
+
* pr=previous (internal state)
|
|
44
|
+
*/
|
|
45
|
+
export type StyleKeys = 'fg' | 'bg' | 'ft' | 'ue' | 'ie' | 're' | 'pr';
|
|
46
|
+
/**
|
|
47
|
+
* Generate xterms: x0 to x255
|
|
48
|
+
*/
|
|
49
|
+
export type XtermKeysFactory<N extends number, Acc extends string[] = []> = Acc['length'] extends N ? Acc[number] : XtermKeysFactory<N, [...Acc, `x${Acc['length']}`]>;
|
|
50
|
+
/**
|
|
51
|
+
* tuple describing ansi on and off codes with optional flag for custom or xterm usage
|
|
52
|
+
* @typedef {readonly [number, number, number?]} AnsiCodeTuple
|
|
53
|
+
* on index 0 is the open code
|
|
54
|
+
* off index 1 is the close code
|
|
55
|
+
* isCustom index 2 indicates xterm or custom when truthy
|
|
56
|
+
*/
|
|
57
|
+
export type AnsiCodeTuple = [on: number, off: number, isCustom?: number];
|
|
58
|
+
/**
|
|
59
|
+
* partial style state map for assembling ansi sequences
|
|
60
|
+
* keys may include fg bg ft ue ie re pr
|
|
61
|
+
*/
|
|
62
|
+
export type StyleState = Partial<Record<StyleKeys, AnsiCodeTuple>>;
|
|
63
|
+
/**
|
|
64
|
+
* base named colors supported by ansi
|
|
65
|
+
*/
|
|
66
|
+
export type StainBase = 'black' | 'blue' | 'cyan' | 'green' | 'purple' | 'red' | 'white' | 'yellow';
|
|
67
|
+
/**
|
|
68
|
+
* named ansi colors including intense variants prefixed with i (ired for bright red)
|
|
69
|
+
*/
|
|
70
|
+
export type StainAnsi = StainBase | `i${StainBase}`;
|
|
71
|
+
/**
|
|
72
|
+
* xterm color keys generated as x0..x255
|
|
73
|
+
*/
|
|
74
|
+
export type StainXterm = XtermKeysFactory<256>;
|
|
75
|
+
/**
|
|
76
|
+
* chainable stain api type
|
|
77
|
+
* callable to format input into a string and exposes chainable style and color properties
|
|
78
|
+
* includes bg bold dim normal reset underline inverse and color names
|
|
79
|
+
* includes xterm colors when enabled and custom colors from options
|
|
80
|
+
* @template C extends Record<string, number> custom color map type
|
|
81
|
+
* @template X extends boolean whether xterm is enabled
|
|
82
|
+
*/
|
|
83
|
+
export type Stain<C extends Record<string, number> = EmptyObject, X extends boolean = false> = ((...args: any[]) => string) & {
|
|
84
|
+
bg: Stain<C, X>;
|
|
85
|
+
bold: Stain<C, X>;
|
|
86
|
+
dim: Stain<C, X>;
|
|
87
|
+
normal: Stain<C, X>;
|
|
88
|
+
reset: Stain<C, X>;
|
|
89
|
+
underline: Stain<C, X>;
|
|
90
|
+
inverse: Stain<C, X>;
|
|
91
|
+
} & {
|
|
92
|
+
[K in StainAnsi]: Stain<C, X>;
|
|
93
|
+
} & (X extends true ? {
|
|
94
|
+
[K in StainXterm]: Stain<C, X>;
|
|
95
|
+
} : EmptyObject) & (keyof C extends never ? EmptyObject : {
|
|
96
|
+
[K in keyof C]: Stain<C, X>;
|
|
97
|
+
});
|
|
98
|
+
/**
|
|
99
|
+
* options for creating a stain instance
|
|
100
|
+
* @template C extends Record<string, number> custom color map type
|
|
101
|
+
* @property {(...args: any[]) => string} [format] custom formatter for args to string
|
|
102
|
+
* @property {boolean} [noColor] disable color output
|
|
103
|
+
* @property {boolean} [xterm] enable xterm 256 color support
|
|
104
|
+
* @property {C} [colors] custom color name to code map
|
|
105
|
+
* @property {boolean} [simpleEscape] use faster simpler escape without nested handling
|
|
106
|
+
* @property {ColorSpace} [colorSpace] force color space, used primarly for testing
|
|
107
|
+
*/
|
|
108
|
+
export type StainOpts<C extends Record<string, number> = EmptyObject> = {
|
|
109
|
+
format?: (...args: any[]) => string;
|
|
110
|
+
noColor?: boolean;
|
|
111
|
+
xterm?: boolean;
|
|
112
|
+
colors?: C;
|
|
113
|
+
simpleEscape?: boolean;
|
|
114
|
+
colorSpace?: ColorS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,EAAE,CAAC,CAAC;CAAE,GAAG,WAAW,CAAC,GAEnE,CAAC,MAAM,CAAC,SAAS,KAAK,GAAG,WAAW,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;CAAE,CAAC,CAAC;AAE1E;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,WAAW,IAAI;IAEtE,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAI,MAAM,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC"}
|
package/dist/utils.d.cts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColorSpace } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* converts an XTerm 8bit (256-color) index to the best 4bit value
|
|
4
|
+
* @param {number} n - xterm index
|
|
5
|
+
* @param {0 | 1} [isBg=0] - if bg
|
|
6
|
+
* @return {number}
|
|
7
|
+
*/
|
|
8
|
+
export declare const xtermTo4Bit: (n: number, isBg?: 0 | 1) => number;
|
|
9
|
+
/**
|
|
10
|
+
* get basic binary 0 color space
|
|
11
|
+
* 0=no-color, 1=16, 2=256
|
|
12
|
+
* @implements nodejs.org/api/cli.html#force_color1-2-3
|
|
13
|
+
* @param {string[]} argv - argv cli/arguments
|
|
14
|
+
* @param {NodeJS.ProcessEnv} env - ENV variables
|
|
15
|
+
* @param {typeof globalThis} gthis - globalThis
|
|
16
|
+
* @return {ColorSpace}
|
|
17
|
+
*/
|
|
18
|
+
export declare const getColorSpace: (argv?: string[], env?: NodeJS.ProcessEnv, gthis?: typeof globalThis) => ColorSpace;
|
|
19
|
+
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.mts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColorSpace } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* converts an XTerm 8bit (256-color) index to the best 4bit value
|
|
4
|
+
* @param {number} n - xterm index
|
|
5
|
+
* @param {0 | 1} [isBg=0] - if bg
|
|
6
|
+
* @return {number}
|
|
7
|
+
*/
|
|
8
|
+
export declare const xtermTo4Bit: (n: number, isBg?: 0 | 1) => number;
|
|
9
|
+
/**
|
|
10
|
+
* get basic binary 0 color space
|
|
11
|
+
* 0=no-color, 1=16, 2=256
|
|
12
|
+
* @implements nodejs.org/api/cli.html#force_color1-2-3
|
|
13
|
+
* @param {string[]} argv - argv cli/arguments
|
|
14
|
+
* @param {NodeJS.ProcessEnv} env - ENV variables
|
|
15
|
+
* @param {typeof globalThis} gthis - globalThis
|
|
16
|
+
* @return {ColorSpace}
|
|
17
|
+
*/
|
|
18
|
+
export declare const getColorSpace: (argv?: string[], env?: NodeJS.ProcessEnv, gthis?: typeof globalThis) => ColorSpace;
|
|
19
|
+
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ColorSpace } from './types.ts';
|
|
2
|
+
/**
|
|
3
|
+
* converts an XTerm 8bit (256-color) index to the best 4bit value
|
|
4
|
+
* @param {number} n - xterm index
|
|
5
|
+
* @param {0 | 1} [isBg=0] - if bg
|
|
6
|
+
* @return {number}
|
|
7
|
+
*/
|
|
8
|
+
export declare const xtermTo4Bit: (n: number, isBg?: 0 | 1) => number;
|
|
9
|
+
/**
|
|
10
|
+
* get basic binary 0 color space
|
|
11
|
+
* 0=no-color, 1=16, 2=256
|
|
12
|
+
* @implements nodejs.org/api/cli.html#force_color1-2-3
|
|
13
|
+
* @param {string[]} argv - argv cli/arguments
|
|
14
|
+
* @param {NodeJS.ProcessEnv} env - ENV variables
|
|
15
|
+
* @param {typeof globalThis} gthis - globalThis
|
|
16
|
+
* @return {ColorSpace}
|
|
17
|
+
*/
|
|
18
|
+
export declare const getColorSpace: (argv?: string[], env?: NodeJS.ProcessEnv, gthis?: typeof globalThis) => ColorSpace;
|
|
19
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EACV,UAAU,EACX,MAAM,YAAY,CAAC;AA6BpB;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,GAAG,MAAM,EAAE,OAAM,CAAC,GAAG,CAAK,KAAG,MAsBxD,CAAC;AAGF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,MAAM,EAAE,EACf,MAAM,MAAM,CAAC,UAAU,EACvB,QAAQ,OAAO,UAAU,KACxB,UAiDF,CAAC"}
|