@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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +8 -8
  3. 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) and only **4.43 KB** dist code
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 | Supports<br>CLI params |
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> | ![npm bundle size](https://img.shields.io/bundlephobia/min/@visulima/colorize) | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ✅ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
409
- | [`ansi-colors`][ansi-colors]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/ansi-colors) | **standard**<br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR` |
409
+ | [`ansi-colors`][ansi-colors]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/ansi-colors) | **standard**<br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR` |
410
410
  | [`ansis`][ansis]<br><nobr>`✅ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/ansis) | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ✅ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
411
411
  | [`chalk`][chalk]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/chalk) | **standard**<br>`16` colors | ✅ | ✅ | ✅ | ❌ | ✅ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
412
- | [`cli-color`][cli-color]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/cli-color) | **standard**<br>`16` colors | ✅ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR` |
412
+ | [`cli-color`][cli-color]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/cli-color) | **standard**<br>`16` colors | ✅ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR` |
413
413
  | [`colorette`][colorette]<br><nobr>`✅ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/colorette) | **standard**<br>`16` colors | ❌ | ❌ | ❌ | ❌ | ❌ | `NO_COLOR`<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
414
- | [`colors-cli`][colors-cli]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/colors-cli) | <nobr>_non-standard_</nobr><br>`16` colors | ✅ | ❌ | ✅ | ❌ | ✅ | only<br>`--no-color`<br>`--color` |
415
- | [`colors.js`][colors.js]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/colors.js) | <nobr>_non-standard_</nobr><br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
416
- | [`kleur`][kleur]<br><nobr>`✅ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/kleur) | **standard**<br>`8` colors | ❌ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR`<br>`FORCE_COLOR` |
414
+ | [`colors-cli`][colors-cli]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/colors-cli) | <nobr>_non-standard_</nobr><br>`16` colors | ✅ | ❌ | ✅ | ❌ | ✅ | only<br>`--no-color`<br>`--color` |
415
+ | [`colors.js`][colors.js]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/colors.js) | <nobr>_non-standard_</nobr><br>`16` colors | ❌ | ❌ | ✅ | ❌ | ✅ | only<br>`FORCE_COLOR`<br>`--no-color`<br>`--color` |
416
+ | [`kleur`][kleur]<br><nobr>`✅ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/kleur) | **standard**<br>`8` colors | ❌ | ❌ | ✅ | ❌ | ❌ | only<br>`NO_COLOR`<br>`FORCE_COLOR` |
417
417
  | [`picocolors`][picocolors]<br><nobr>`❌ named import`</nobr> | ![npm bundle size](https://img.shields.io/bundlephobia/min/picocolors) | **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.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.0.0"
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.7",
116
+ "@babel/core": "^7.23.9",
117
117
  "@rushstack/eslint-plugin-security": "^0.8.0",
118
- "@secretlint/secretlint-rule-preset-recommend": "^8.1.0",
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.1",
122
- "@vitest/ui": "^1.2.1",
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.3",
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.20",
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.0",
145
+ "secretlint": "8.1.1",
146
146
  "semantic-release": "^23.0.0",
147
- "sort-package-json": "^2.6.0",
147
+ "sort-package-json": "^2.7.0",
148
148
  "tsup": "^8.0.1",
149
- "type-fest": "^4.9.0",
149
+ "type-fest": "^4.10.2",
150
150
  "typescript": "^5.3.3",
151
- "vitest": "^1.2.1"
151
+ "vitest": "^1.2.2"
152
152
  },
153
153
  "engines": {
154
154
  "node": ">=18.* <=21.*"