Skip to content

Commit

Permalink
Update screenshot
Browse files Browse the repository at this point in the history
Fixes #554
  • Loading branch information
sindresorhus committed Jul 2, 2022
1 parent 503b9d3 commit ba5c385
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion examples/screenshot.js
Expand Up @@ -6,7 +6,16 @@ import chalk from '../source/index.js';
for (const key of Object.keys(styles)) {
let returnValue = key;

if (key === 'reset' || key === 'hidden' || key === 'grey') {
// We skip `overline` as almost no terminal supports it so we cannot show it off.
if (
key === 'reset'
|| key === 'hidden'
|| key === 'grey'
|| key === 'bgGray'
|| key === 'bgGrey'
|| key === 'overline'
|| key.endsWith('Bright')
) {
continue;
}

Expand Down
Binary file added media/screenshot.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -15,7 +15,7 @@
[![run on repl.it](https://img.shields.io/badge/Run_on_Replit-130f26?logo=replit&logoColor=white)](https://repl.it/github/chalk/chalk)
[![Support Chalk on DEV](https://badge.devprotocol.xyz/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15/descriptive)](https://stakes.social/0x44d871aebF0126Bf646753E2C976Aa7e68A66c15)

<img src="https://cdn.jsdelivr.net/gh/chalk/ansi-styles@8261697c95bf34b6c7767e2cbe9941a851d59385/screenshot.svg" width="900">
![](media/screenshot.png)

<br>

Expand Down

0 comments on commit ba5c385

Please sign in to comment.