chalk
Advanced tools
Comparing version 3.0.0-beta.2 to 3.0.0
@@ -217,2 +217,10 @@ declare const enum LevelEnum { | ||
/** | ||
Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set text color. | ||
30 <= code && code < 38 || 90 <= code && code < 98 | ||
For example, 31 for red, 91 for redBright. | ||
*/ | ||
ansi(code: number): Chalk; | ||
/** | ||
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set text color. | ||
@@ -271,2 +279,11 @@ */ | ||
/** | ||
Use a [Select/Set Graphic Rendition](https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_parameters) (SGR) [color code number](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) to set background color. | ||
30 <= code && code < 38 || 90 <= code && code < 98 | ||
For example, 31 for red, 91 for redBright. | ||
Use the foreground code, not the background code (for example, not 41, nor 101). | ||
*/ | ||
bgAnsi(code: number): Chalk; | ||
/** | ||
Use a [8-bit unsigned number](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) to set background color. | ||
@@ -273,0 +290,0 @@ */ |
{ | ||
"name": "chalk", | ||
"version": "3.0.0-beta.2", | ||
"version": "3.0.0", | ||
"description": "Terminal string styling done right", | ||
@@ -48,4 +48,4 @@ "license": "MIT", | ||
"ava": "^2.4.0", | ||
"coveralls": "^3.0.5", | ||
"execa": "^2.0.3", | ||
"coveralls": "^3.0.7", | ||
"execa": "^3.2.0", | ||
"import-fresh": "^3.1.0", | ||
@@ -52,0 +52,0 @@ "matcha": "^0.7.0", |
@@ -16,5 +16,3 @@ <h1 align="center"> | ||
**This readme reflects the next major version that is currently in development. You probably want [the v2 readme](https://www.npmjs.com/package/chalk).** | ||
## Highlights | ||
@@ -265,3 +263,3 @@ | ||
- [`hwb`](https://en.wikipedia.org/wiki/HWB_color_model) - Example: `chalk.hwb(32, 0, 50).bold('Orange!')` | ||
- `ansi16` | ||
- [`ansi`](https://en.wikipedia.org/wiki/ANSI_escape_code#3/4_bit) - Example: `chalk.ansi(31).bgAnsi(93)('red on yellowBright')` | ||
- [`ansi256`](https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit) - Example: `chalk.bgAnsi256(194)('Honeydew, more or less')` | ||
@@ -280,2 +278,9 @@ | ||
## chalk for enterprise | ||
Available as part of the Tidelift Subscription. | ||
The maintainers of chalk and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-chalk?utm_source=npm-chalk&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) | ||
## Related | ||
@@ -303,14 +308,1 @@ | ||
- [Josh Junon](https://github.com/qix-) | ||
--- | ||
<div align="center"> | ||
<b> | ||
<a href="https://tidelift.com/subscription/pkg/npm-chalk?utm_source=npm-chalk&utm_medium=referral&utm_campaign=readme">Get professional support for Chalk with a Tidelift subscription</a> | ||
</b> | ||
<br> | ||
<sub> | ||
Tidelift helps make open source sustainable for maintainers while giving companies<br>assurances about security, maintenance, and licensing for their dependencies. | ||
</sub> | ||
</div> |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32729
672
1
305