Comparing version 2.0.15 to 2.0.16
{ | ||
"name": "colorette", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"type": "module", | ||
@@ -8,3 +8,3 @@ "main": "index.cjs", | ||
"types": "index.d.ts", | ||
"description": "Easily set your terminal text color & styles.", | ||
"description": "🌈Easily set your terminal text color & styles.", | ||
"repository": "jorgebucaran/colorette", | ||
@@ -11,0 +11,0 @@ "license": "MIT", |
@@ -1,16 +0,16 @@ | ||
# Colorette | ||
# 🌈Colorette | ||
> Easily set your terminal text color & styles. | ||
- Automatic color support detection. | ||
- Up to [2x faster](#benchmarks) than alternatives. | ||
- [`NO_COLOR`](https://no-color.org) friendly. | ||
- No dependecies | ||
- Automatic color support detection | ||
- Up to [2x faster](#benchmarks) than alternatives | ||
- TypeScript support | ||
- [`NO_COLOR`](https://no-color.org) friendly | ||
- Node >= `10` | ||
> 👋 [**Upgrading from Colorette `1.x`?**](https://github.com/jorgebucaran/colorette/issues/70) | ||
> [**Upgrading from Colorette `1.x`?**](https://github.com/jorgebucaran/colorette/issues/70) | ||
## Quickstart | ||
Here's the first example to get you started. | ||
```js | ||
@@ -37,3 +37,3 @@ import { blue, bold, underline } from "colorette" | ||
Of course, you can nest styles without breaking existing color sequences. | ||
You can also nest styles without breaking existing color sequences. | ||
@@ -62,3 +62,3 @@ ```js | ||
### `blue()`, ... | ||
### \<color\>() | ||
@@ -73,3 +73,3 @@ > See all [supported colors](#supported-colors). | ||
### `createColors()` | ||
### createColors() | ||
@@ -84,3 +84,3 @@ Override terminal color detection via `createColors({ useColor })`. | ||
### `isColorSupported` | ||
### isColorSupported | ||
@@ -123,2 +123,11 @@ `true` if your terminal supports color, `false` otherwise. Used internally, but exposed for convenience. | ||
```diff | ||
chalk 1,786,703 ops/sec | ||
kleur 1,618,960 ops/sec | ||
colors 646,823 ops/sec | ||
ansi-colors 786,149 ops/sec | ||
picocolors 2,871,758 ops/sec | ||
+ colorette 3,002,751 ops/sec | ||
``` | ||
## Acknowledgements | ||
@@ -125,0 +134,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16846
135