Minor tweaks

This commit is contained in:
Sindre Sorhus 2022-11-17 01:56:01 +07:00
parent 79c56dfc1e
commit a027e3c1e0
5 changed files with 9 additions and 21 deletions

View file

@ -13,7 +13,6 @@ jobs:
- 18
- 16
- 14
- 12
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3

View file

@ -33,8 +33,6 @@ async function animateString(string) {
}
}
(async () => {
console.log();
await animateString('We hope you enjoy Chalk! <3');
console.log();
})();

View file

@ -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": {

View file

@ -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">

View file

@ -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
}
}