@visulima/colorize 1.4.0 → 1.4.2
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 +53 -0
- package/README.md +1 -0
- package/dist/gradient.cjs.map +1 -1
- package/dist/gradient.js.map +1 -1
- package/dist/index.server.cjs.map +1 -1
- package/dist/index.server.js.map +1 -1
- package/dist/template.cjs.map +1 -1
- package/dist/template.js.map +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +242 -242
package/package.json
CHANGED
|
@@ -1,252 +1,252 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
61
|
-
|
|
62
|
-
|
|
2
|
+
"name": "@visulima/colorize",
|
|
3
|
+
"version": "1.4.2",
|
|
4
|
+
"description": "Terminal and Console string styling done right.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"256",
|
|
7
|
+
"anolilab",
|
|
8
|
+
"ansi",
|
|
9
|
+
"ansi-colors",
|
|
10
|
+
"blue",
|
|
11
|
+
"browser",
|
|
12
|
+
"chalk",
|
|
13
|
+
"chrome",
|
|
14
|
+
"cli",
|
|
15
|
+
"color",
|
|
16
|
+
"colorette",
|
|
17
|
+
"colorize",
|
|
18
|
+
"colors",
|
|
19
|
+
"colors.js",
|
|
20
|
+
"colour",
|
|
21
|
+
"command-line",
|
|
22
|
+
"console",
|
|
23
|
+
"cyan",
|
|
24
|
+
"firefox",
|
|
25
|
+
"FORCE_COLOR",
|
|
26
|
+
"formatting",
|
|
27
|
+
"gradient",
|
|
28
|
+
"gradients",
|
|
29
|
+
"green",
|
|
30
|
+
"kleur",
|
|
31
|
+
"log",
|
|
32
|
+
"logging",
|
|
33
|
+
"magenta",
|
|
34
|
+
"NO_COLOR",
|
|
35
|
+
"picocolors",
|
|
36
|
+
"red",
|
|
37
|
+
"rgb",
|
|
38
|
+
"shell",
|
|
39
|
+
"string",
|
|
40
|
+
"strip-color",
|
|
41
|
+
"style",
|
|
42
|
+
"styles",
|
|
43
|
+
"tagged template literal",
|
|
44
|
+
"tagged template string",
|
|
45
|
+
"tagged template",
|
|
46
|
+
"tagged-template",
|
|
47
|
+
"template",
|
|
48
|
+
"template-string",
|
|
49
|
+
"templates",
|
|
50
|
+
"terminal",
|
|
51
|
+
"text",
|
|
52
|
+
"truecolor",
|
|
53
|
+
"tty",
|
|
54
|
+
"visulima",
|
|
55
|
+
"xterm",
|
|
56
|
+
"yellow"
|
|
57
|
+
],
|
|
58
|
+
"homepage": "https://www.visulima.com/docs/package/colorize",
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "https://github.com/visulima/visulima.git",
|
|
62
|
+
"directory": "packages/colorize"
|
|
63
|
+
},
|
|
64
|
+
"funding": [
|
|
65
|
+
{
|
|
66
|
+
"type": "github",
|
|
67
|
+
"url": "https://github.com/sponsors/prisis"
|
|
63
68
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
69
|
+
{
|
|
70
|
+
"type": "consulting",
|
|
71
|
+
"url": "https://anolilab.com/support"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"license": "MIT",
|
|
75
|
+
"author": {
|
|
76
|
+
"name": "Daniel Bannert",
|
|
77
|
+
"email": "d.bannert@anolilab.de"
|
|
78
|
+
},
|
|
79
|
+
"sideEffects": false,
|
|
80
|
+
"type": "module",
|
|
81
|
+
"exports": {
|
|
82
|
+
".": {
|
|
83
|
+
"browser": "./dist/index.server.js",
|
|
84
|
+
"require": {
|
|
85
|
+
"types": "./dist/index.server.d.cts",
|
|
86
|
+
"default": "./dist/index.server.cjs"
|
|
87
|
+
},
|
|
88
|
+
"import": {
|
|
89
|
+
"types": "./dist/index.server.d.ts",
|
|
90
|
+
"default": "./dist/index.server.js"
|
|
91
|
+
}
|
|
78
92
|
},
|
|
79
|
-
"
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
84
|
-
"require": {
|
|
85
|
-
"types": "./dist/index.server.d.cts",
|
|
86
|
-
"default": "./dist/index.server.cjs"
|
|
87
|
-
},
|
|
88
|
-
"import": {
|
|
89
|
-
"types": "./dist/index.server.d.ts",
|
|
90
|
-
"default": "./dist/index.server.js"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
"./browser": {
|
|
94
|
-
"import": {
|
|
95
|
-
"types": "./dist/index.browser.d.ts",
|
|
96
|
-
"default": "./dist/index.browser.js"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"./template": {
|
|
100
|
-
"require": {
|
|
101
|
-
"types": "./dist/template.d.cts",
|
|
102
|
-
"default": "./dist/template.cjs"
|
|
103
|
-
},
|
|
104
|
-
"import": {
|
|
105
|
-
"types": "./dist/template.d.ts",
|
|
106
|
-
"default": "./dist/template.js"
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
"./gradient": {
|
|
110
|
-
"require": {
|
|
111
|
-
"types": "./dist/gradient.d.cts",
|
|
112
|
-
"default": "./dist/gradient.cjs"
|
|
113
|
-
},
|
|
114
|
-
"import": {
|
|
115
|
-
"types": "./dist/gradient.d.ts",
|
|
116
|
-
"default": "./dist/gradient.js"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"./utils": {
|
|
120
|
-
"require": {
|
|
121
|
-
"types": "./dist/utils.d.cts",
|
|
122
|
-
"default": "./dist/utils.cjs"
|
|
123
|
-
},
|
|
124
|
-
"import": {
|
|
125
|
-
"types": "./dist/utils.d.ts",
|
|
126
|
-
"default": "./dist/utils.js"
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
"./package.json": "./package.json"
|
|
93
|
+
"./browser": {
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/index.browser.d.ts",
|
|
96
|
+
"default": "./dist/index.browser.js"
|
|
97
|
+
}
|
|
130
98
|
},
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
"scripts": {
|
|
141
|
-
"build": "cross-env NODE_ENV=development tsup",
|
|
142
|
-
"build:prod": "cross-env NODE_ENV=production tsup",
|
|
143
|
-
"clean": "rimraf node_modules dist .eslintcache",
|
|
144
|
-
"dev": "pnpm run build --watch",
|
|
145
|
-
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,cts,mts,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
146
|
-
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,cts,mts,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
147
|
-
"lint:packagejson": "publint --strict",
|
|
148
|
-
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
149
|
-
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
150
|
-
"lint:types": "tsc --noEmit",
|
|
151
|
-
"test": "vitest run",
|
|
152
|
-
"test:coverage": "vitest run --coverage",
|
|
153
|
-
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
154
|
-
"test:watch": "vitest"
|
|
99
|
+
"./template": {
|
|
100
|
+
"require": {
|
|
101
|
+
"types": "./dist/template.d.cts",
|
|
102
|
+
"default": "./dist/template.cjs"
|
|
103
|
+
},
|
|
104
|
+
"import": {
|
|
105
|
+
"types": "./dist/template.d.ts",
|
|
106
|
+
"default": "./dist/template.js"
|
|
107
|
+
}
|
|
155
108
|
},
|
|
156
|
-
"
|
|
157
|
-
|
|
109
|
+
"./gradient": {
|
|
110
|
+
"require": {
|
|
111
|
+
"types": "./dist/gradient.d.cts",
|
|
112
|
+
"default": "./dist/gradient.cjs"
|
|
113
|
+
},
|
|
114
|
+
"import": {
|
|
115
|
+
"types": "./dist/gradient.d.ts",
|
|
116
|
+
"default": "./dist/gradient.js"
|
|
117
|
+
}
|
|
158
118
|
},
|
|
159
|
-
"
|
|
160
|
-
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
|
|
168
|
-
"@vitest/coverage-v8": "^1.4.0",
|
|
169
|
-
"@vitest/ui": "^1.4.0",
|
|
170
|
-
"ansi-regex": "^6.0.1",
|
|
171
|
-
"ansi-styles": "^6.2.1",
|
|
172
|
-
"cross-env": "^7.0.3",
|
|
173
|
-
"eslint": "^8.57.0",
|
|
174
|
-
"eslint-plugin-deprecation": "^2.0.0",
|
|
175
|
-
"eslint-plugin-etc": "^2.0.3",
|
|
176
|
-
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
177
|
-
"eslint-plugin-mdx": "^3.1.5",
|
|
178
|
-
"eslint-plugin-vitest": "^0.4.1",
|
|
179
|
-
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
180
|
-
"prettier": "^3.2.5",
|
|
181
|
-
"rimraf": "^5.0.5",
|
|
182
|
-
"secretlint": "8.2.3",
|
|
183
|
-
"semantic-release": "^23.0.7",
|
|
184
|
-
"sort-package-json": "^2.10.0",
|
|
185
|
-
"tsup": "^8.0.2",
|
|
186
|
-
"type-fest": "^4.15.0",
|
|
187
|
-
"typescript": "^5.4.4",
|
|
188
|
-
"vitest": "^1.4.0"
|
|
119
|
+
"./utils": {
|
|
120
|
+
"require": {
|
|
121
|
+
"types": "./dist/utils.d.cts",
|
|
122
|
+
"default": "./dist/utils.cjs"
|
|
123
|
+
},
|
|
124
|
+
"import": {
|
|
125
|
+
"types": "./dist/utils.d.ts",
|
|
126
|
+
"default": "./dist/utils.js"
|
|
127
|
+
}
|
|
189
128
|
},
|
|
190
|
-
"
|
|
191
|
-
|
|
129
|
+
"./package.json": "./package.json"
|
|
130
|
+
},
|
|
131
|
+
"main": "dist/index.server.cjs",
|
|
132
|
+
"module": "dist/index.server.js",
|
|
133
|
+
"types": "dist/index.server.d.ts",
|
|
134
|
+
"files": [
|
|
135
|
+
"dist/**",
|
|
136
|
+
"README.md",
|
|
137
|
+
"CHANGELOG.md",
|
|
138
|
+
"LICENSE.md"
|
|
139
|
+
],
|
|
140
|
+
"dependencies": {
|
|
141
|
+
"@visulima/is-ansi-color-supported": "2.2.1"
|
|
142
|
+
},
|
|
143
|
+
"devDependencies": {
|
|
144
|
+
"@anolilab/eslint-config": "^15.0.3",
|
|
145
|
+
"@anolilab/prettier-config": "^5.0.14",
|
|
146
|
+
"@anolilab/semantic-release-pnpm": "^1.1.0",
|
|
147
|
+
"@anolilab/semantic-release-preset": "^8.1.0",
|
|
148
|
+
"@babel/core": "^7.24.6",
|
|
149
|
+
"@rushstack/eslint-plugin-security": "^0.8.1",
|
|
150
|
+
"@secretlint/secretlint-rule-preset-recommend": "^8.2.4",
|
|
151
|
+
"@total-typescript/ts-reset": "^0.5.1",
|
|
152
|
+
"@types/node": "18.18.14",
|
|
153
|
+
"@visulima/path": "1.0.2",
|
|
154
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
155
|
+
"@vitest/ui": "^1.6.0",
|
|
156
|
+
"ansi-regex": "^6.0.1",
|
|
157
|
+
"ansi-styles": "^6.2.1",
|
|
158
|
+
"cross-env": "^7.0.3",
|
|
159
|
+
"eslint": "^8.57.0",
|
|
160
|
+
"eslint-plugin-deprecation": "^3.0.0",
|
|
161
|
+
"eslint-plugin-etc": "^2.0.3",
|
|
162
|
+
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
163
|
+
"eslint-plugin-mdx": "^3.1.5",
|
|
164
|
+
"eslint-plugin-vitest": "^0.4.1",
|
|
165
|
+
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
166
|
+
"prettier": "^3.3.0",
|
|
167
|
+
"rimraf": "^5.0.7",
|
|
168
|
+
"secretlint": "8.2.3",
|
|
169
|
+
"semantic-release": "23.1.1",
|
|
170
|
+
"tsup": "^8.1.0",
|
|
171
|
+
"typescript": "^5.4.5",
|
|
172
|
+
"vitest": "^1.6.0"
|
|
173
|
+
},
|
|
174
|
+
"engines": {
|
|
175
|
+
"node": ">=18.* <=22.*"
|
|
176
|
+
},
|
|
177
|
+
"os": [
|
|
178
|
+
"darwin",
|
|
179
|
+
"linux",
|
|
180
|
+
"win32"
|
|
181
|
+
],
|
|
182
|
+
"publishConfig": {
|
|
183
|
+
"access": "public",
|
|
184
|
+
"provenance": true
|
|
185
|
+
},
|
|
186
|
+
"anolilab": {
|
|
187
|
+
"eslint-config": {
|
|
188
|
+
"plugin": {
|
|
189
|
+
"tsdoc": false
|
|
190
|
+
},
|
|
191
|
+
"warn_on_unsupported_typescript_version": false,
|
|
192
|
+
"info_on_disabling_jsx_react_rule": false,
|
|
193
|
+
"info_on_disabling_prettier_conflict_rule": false,
|
|
194
|
+
"info_on_disabling_jsonc_sort_keys_rule": false,
|
|
195
|
+
"info_on_disabling_etc_no_deprecated": false
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"sources": [
|
|
199
|
+
{
|
|
200
|
+
"source": "src/index.browser.ts",
|
|
201
|
+
"format": "esm"
|
|
192
202
|
},
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
"win32"
|
|
197
|
-
],
|
|
198
|
-
"publishConfig": {
|
|
199
|
-
"access": "public",
|
|
200
|
-
"provenance": true
|
|
203
|
+
{
|
|
204
|
+
"source": "src/index.server.mts",
|
|
205
|
+
"format": "esm"
|
|
201
206
|
},
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
"tsdoc": false
|
|
206
|
-
},
|
|
207
|
-
"warn_on_unsupported_typescript_version": false,
|
|
208
|
-
"info_on_disabling_jsx_react_rule": false,
|
|
209
|
-
"info_on_disabling_prettier_conflict_rule": false,
|
|
210
|
-
"info_on_disabling_jsonc_sort_keys_rule": false,
|
|
211
|
-
"info_on_disabling_etc_no_deprecated": false
|
|
212
|
-
}
|
|
207
|
+
{
|
|
208
|
+
"source": "src/index.server.cts",
|
|
209
|
+
"format": "cjs"
|
|
213
210
|
},
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
211
|
+
{
|
|
212
|
+
"source": "src/template.ts",
|
|
213
|
+
"format": "esm"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
"source": "src/template.ts",
|
|
217
|
+
"format": "cjs"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"source": "src/gradient.ts",
|
|
221
|
+
"format": "esm"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"source": "src/gradient.ts",
|
|
225
|
+
"format": "cjs"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"source": "src/utils.ts",
|
|
229
|
+
"format": "esm"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"source": "src/utils.ts",
|
|
233
|
+
"format": "cjs"
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"scripts": {
|
|
237
|
+
"build": "cross-env NODE_ENV=development tsup",
|
|
238
|
+
"build:prod": "cross-env NODE_ENV=production tsup",
|
|
239
|
+
"clean": "rimraf node_modules dist .eslintcache",
|
|
240
|
+
"dev": "pnpm run build --watch",
|
|
241
|
+
"lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,cts,mts,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
|
|
242
|
+
"lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,cts,mts,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
|
|
243
|
+
"lint:package-json": "publint --strict",
|
|
244
|
+
"lint:prettier": "prettier --config=.prettierrc.cjs --check .",
|
|
245
|
+
"lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
|
|
246
|
+
"lint:types": "tsc --noEmit",
|
|
247
|
+
"test": "vitest run",
|
|
248
|
+
"test:coverage": "vitest run --coverage",
|
|
249
|
+
"test:ui": "vitest --ui --coverage.enabled=true",
|
|
250
|
+
"test:watch": "vitest"
|
|
251
|
+
}
|
|
252
|
+
}
|