@visulima/colorize 1.0.0 → 1.0.1
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 +8 -0
- package/README.md +8 -8
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## @visulima/colorize [1.0.1](https://github.com/visulima/visulima/compare/@visulima/colorize@1.0.0...@visulima/colorize@1.0.1) (2024-01-31)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Dependencies
|
|
6
|
+
|
|
7
|
+
* **@visulima/is-ansi-color-supported:** upgraded to 1.1.0
|
|
8
|
+
|
|
1
9
|
## @visulima/colorize 1.0.0 (2024-01-28)
|
|
2
10
|
|
|
3
11
|
|
package/README.md
CHANGED
|
@@ -49,7 +49,7 @@ For instance, you can use `green` to make `` green`Hello World!` `` pop, `` red`
|
|
|
49
49
|
- Supports **Deno**, **Next.JS** runtimes and **Browser**
|
|
50
50
|
- Expressive API
|
|
51
51
|
- Doesn't extend `String.prototype`
|
|
52
|
-
- Up to **x3 faster** than **chalk**, [see benchmarks](#benchmark)
|
|
52
|
+
- Up to **x3 faster** than **chalk**, [see benchmarks](#benchmark)
|
|
53
53
|
- **Auto detects** color support
|
|
54
54
|
- **TypeScript** support out of the box
|
|
55
55
|
- Clean and focused
|
|
@@ -403,17 +403,17 @@ If you're on Windows, do yourself a favor and use [Windows Terminal](https://git
|
|
|
403
403
|
|
|
404
404
|
## Comparison of most popular libraries
|
|
405
405
|
|
|
406
|
-
| Library<br>**\*\***\_\_**\*\***<br> - name<br> - named import | Code size | Naming colors | ANSI 256<br>colors | True-<br>color | Chained<br>syntax | Nested<br>template strings | New<br>Line |
|
|
407
|
-
| :---------------------------------------------------------------- | :----------------------------------------------------------------------------- | :----------------------------------------: | :----------------: | :------------: | :---------------: | :------------------------: | :---------: |
|
|
406
|
+
| Library<br>**\*\***\_\_**\*\***<br> - name<br> - named import | Code size | Naming colors | ANSI 256<br>colors | True-<br>color | Chained<br>syntax | Nested<br>template strings | New<br>Line | Supports<br>CLI params |
|
|
407
|
+
| :---------------------------------------------------------------- | :----------------------------------------------------------------------------- | :----------------------------------------: | :----------------: | :------------: | :---------------: | :------------------------: | :---------: | :------------------------------------------------------: |
|
|
408
408
|
| [`@visulima/colorize`][npm-url]<br><nobr>`✅ named import`</nobr> |  | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ✅ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
409
|
-
| [`ansi-colors`][ansi-colors]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ |
|
|
409
|
+
| [`ansi-colors`][ansi-colors]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR` |
|
|
410
410
|
| [`ansis`][ansis]<br><nobr>`✅ named import`</nobr> |  | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ✅ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
411
411
|
| [`chalk`][chalk]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ❌ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
412
|
-
| [`cli-color`][cli-color]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`16` colors | ✅ | ❌ | ✅ | ❌ | ❌ |
|
|
412
|
+
| [`cli-color`][cli-color]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`16` colors | ✅ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR` |
|
|
413
413
|
| [`colorette`][colorette]<br><nobr>`✅ named import`</nobr> |  | **standard**<br>`16` colors | ❌ | ❌ | ❌ | ❌ | ❌ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
414
|
-
| [`colors-cli`][colors-cli]<br><nobr>`❌ named import`</nobr> |  | <nobr>_non-standard_</nobr><br>`16` colors | ✅ | ❌ | ✅ | ❌ | ✅ |
|
|
415
|
-
| [`colors.js`][colors.js]<br><nobr>`❌ named import`</nobr> |  | <nobr>_non-standard_</nobr><br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ |
|
|
416
|
-
| [`kleur`][kleur]<br><nobr>`✅ named import`</nobr> |  | **standard**<br>`8` colors | ❌ | ❌ | ✅ | ❌ | ❌ |
|
|
414
|
+
| [`colors-cli`][colors-cli]<br><nobr>`❌ named import`</nobr> |  | <nobr>_non-standard_</nobr><br>`16` colors | ✅ | ❌ | ✅ | ❌ | ✅ | only<br>`--no-color`<br>`--color` |
|
|
415
|
+
| [`colors.js`][colors.js]<br><nobr>`❌ named import`</nobr> |  | <nobr>_non-standard_</nobr><br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
416
|
+
| [`kleur`][kleur]<br><nobr>`✅ named import`</nobr> |  | **standard**<br>`8` colors | ❌ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR`<br>`FORCE_COLOR` |
|
|
417
417
|
| [`picocolors`][picocolors]<br><nobr>`❌ named import`</nobr> |  | **standard**<br>`8` colors | ❌ | ❌ | ❌ | ❌ | ❌ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
|
|
418
418
|
|
|
419
419
|
> **Note**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/colorize",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Terminal and Console string styling done right.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"256",
|
|
@@ -107,23 +107,23 @@
|
|
|
107
107
|
"test:watch": "vitest"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"@visulima/is-ansi-color-supported": "1.
|
|
110
|
+
"@visulima/is-ansi-color-supported": "1.1.0"
|
|
111
111
|
},
|
|
112
112
|
"devDependencies": {
|
|
113
113
|
"@anolilab/eslint-config": "^15.0.3",
|
|
114
114
|
"@anolilab/prettier-config": "^5.0.14",
|
|
115
115
|
"@anolilab/semantic-release-preset": "^8.0.3",
|
|
116
|
-
"@babel/core": "^7.23.
|
|
116
|
+
"@babel/core": "^7.23.9",
|
|
117
117
|
"@rushstack/eslint-plugin-security": "^0.8.0",
|
|
118
|
-
"@secretlint/secretlint-rule-preset-recommend": "^8.1.
|
|
118
|
+
"@secretlint/secretlint-rule-preset-recommend": "^8.1.1",
|
|
119
119
|
"@types/micromatch": "^4.0.6",
|
|
120
120
|
"@types/node": "18.18.8",
|
|
121
|
-
"@vitest/coverage-v8": "^1.2.
|
|
122
|
-
"@vitest/ui": "^1.2.
|
|
121
|
+
"@vitest/coverage-v8": "^1.2.2",
|
|
122
|
+
"@vitest/ui": "^1.2.2",
|
|
123
123
|
"ansi-colors": "4.1.3",
|
|
124
124
|
"ansi-regex": "^6.0.1",
|
|
125
125
|
"ansi-styles": "^6.2.1",
|
|
126
|
-
"ansis": "2.0
|
|
126
|
+
"ansis": "2.1.0",
|
|
127
127
|
"benchmark": "2.1.4",
|
|
128
128
|
"chalk": "5.3.0",
|
|
129
129
|
"cli-color": "2.0.3",
|
|
@@ -136,19 +136,19 @@
|
|
|
136
136
|
"eslint-plugin-etc": "^2.0.3",
|
|
137
137
|
"eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
|
|
138
138
|
"eslint-plugin-mdx": "^3.1.5",
|
|
139
|
-
"eslint-plugin-vitest": "^0.3.
|
|
139
|
+
"eslint-plugin-vitest": "^0.3.21",
|
|
140
140
|
"eslint-plugin-vitest-globals": "^1.4.0",
|
|
141
141
|
"kleur": "4.1.5",
|
|
142
142
|
"picocolors": "1.0.0",
|
|
143
143
|
"prettier": "^3.2.4",
|
|
144
144
|
"rimraf": "^5.0.5",
|
|
145
|
-
"secretlint": "8.1.
|
|
145
|
+
"secretlint": "8.1.1",
|
|
146
146
|
"semantic-release": "^23.0.0",
|
|
147
|
-
"sort-package-json": "^2.
|
|
147
|
+
"sort-package-json": "^2.7.0",
|
|
148
148
|
"tsup": "^8.0.1",
|
|
149
|
-
"type-fest": "^4.
|
|
149
|
+
"type-fest": "^4.10.2",
|
|
150
150
|
"typescript": "^5.3.3",
|
|
151
|
-
"vitest": "^1.2.
|
|
151
|
+
"vitest": "^1.2.2"
|
|
152
152
|
},
|
|
153
153
|
"engines": {
|
|
154
154
|
"node": ">=18.* <=21.*"
|