Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Nov 28, 2022
1 parent 79c56df commit a027e3c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 21 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Expand Up @@ -13,7 +13,6 @@ jobs:
- 18
- 16
- 14
- 12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
8 changes: 3 additions & 5 deletions examples/rainbow.js
Expand Up @@ -33,8 +33,6 @@ async function animateString(string) {
}
}

(async () => {
console.log();
await animateString('We hope you enjoy Chalk! <3');
console.log();
})();
console.log();
await animateString('We hope you enjoy Chalk! <3');
console.log();
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -58,7 +58,7 @@
"log-update": "^5.0.0",
"matcha": "^0.7.0",
"tsd": "^0.19.0",
"xo": "^0.52.4",
"xo": "^0.53.0",
"yoctodelay": "^2.0.0"
},
"xo": {
Expand Down
12 changes: 0 additions & 12 deletions readme.md
Expand Up @@ -40,18 +40,6 @@
</a>
<br>
<br>
<a href="https://doppler.com/?utm_campaign=github_repo&utm_medium=referral&utm_content=chalk&utm_source=github">
<div>
<img src="https://dashboard.doppler.com/imgs/logo-long.svg" width="240" alt="Doppler">
</div>
<b>All your environment variables, in one place</b>
<div>
<span>Stop struggling with scattered API keys, hacking together home-brewed tools,</span>
<br>
<span>and avoiding access controls. Keep your team and servers in sync with Doppler.</span>
</div>
</a>
<br>
<a href="https://strapi.io/?ref=sindresorhus">
<div>
<img src="https://sindresorhus.com/assets/thanks/strapi-logo-white-bg.png" width="220" alt="Strapi">
Expand Down
7 changes: 5 additions & 2 deletions source/vendor/supports-color/index.js
Expand Up @@ -129,10 +129,13 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);

switch (env.TERM_PROGRAM) {
case 'iTerm.app':
case 'iTerm.app': {
return version >= 3 ? 3 : 2;
case 'Apple_Terminal':
}

case 'Apple_Terminal': {
return 2;
}
// No default
}
}
Expand Down

0 comments on commit a027e3c

Please sign in to comment.