forked from orbit-oss/chalk
Meta tweaks
This commit is contained in:
parent
795273f17a
commit
77126fba13
6 changed files with 29 additions and 51 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
|
@ -14,8 +14,8 @@ jobs:
|
||||||
- 16
|
- 16
|
||||||
- 14
|
- 14
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: npm install
|
- run: npm install
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ function rainbow(string, offset) {
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
|
|
||||||
const hueStep = 360 / string.replace(ignoreChars, '').length;
|
const hueStep = 360 / string.replaceAll(ignoreChars, '').length;
|
||||||
|
|
||||||
let hue = offset % 360;
|
let hue = offset % 360;
|
||||||
const characters = [];
|
const characters = [];
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"types": "./source/index.d.ts",
|
"types": "./source/index.d.ts",
|
||||||
|
"sideEffects": false,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
"node": "^12.17.0 || ^14.13 || >=16.0.0"
|
||||||
},
|
},
|
||||||
|
|
@ -58,10 +59,9 @@
|
||||||
"log-update": "^5.0.0",
|
"log-update": "^5.0.0",
|
||||||
"matcha": "^0.7.0",
|
"matcha": "^0.7.0",
|
||||||
"tsd": "^0.19.0",
|
"tsd": "^0.19.0",
|
||||||
"xo": "^0.53.0",
|
"xo": "^0.57.0",
|
||||||
"yoctodelay": "^2.0.0"
|
"yoctodelay": "^2.0.0"
|
||||||
},
|
},
|
||||||
"sideEffects": false,
|
|
||||||
"xo": {
|
"xo": {
|
||||||
"rules": {
|
"rules": {
|
||||||
"unicorn/prefer-string-slice": "off",
|
"unicorn/prefer-string-slice": "off",
|
||||||
|
|
|
||||||
42
readme.md
42
readme.md
|
|
@ -15,48 +15,6 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<div align="center">
|
|
||||||
<p>
|
|
||||||
<p>
|
|
||||||
<sup>
|
|
||||||
Sindre Sorhus' open source work is supported by the community on <a href="https://github.com/sponsors/sindresorhus">GitHub Sponsors</a>
|
|
||||||
</sup>
|
|
||||||
</p>
|
|
||||||
<sup>Special thanks to:</sup>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<a href="https://standardresume.co/tech">
|
|
||||||
<img src="https://sindresorhus.com/assets/thanks/standard-resume-logo.svg" width="160">
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
<a href="https://retool.com/?utm_campaign=sindresorhus">
|
|
||||||
<img src="https://sindresorhus.com/assets/thanks/retool-logo.svg" width="230">
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<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">
|
|
||||||
</div>
|
|
||||||
<b>Strapi is the leading open-source headless CMS.</b>
|
|
||||||
<div>
|
|
||||||
<sup>It’s 100% JavaScript, fully customizable, and developer-first.</sup>
|
|
||||||
</div>
|
|
||||||
</a>
|
|
||||||
<br>
|
|
||||||
<br>
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
<br>
|
|
||||||
|
|
||||||
## Highlights
|
## Highlights
|
||||||
|
|
||||||
- Expressive API
|
- Expressive API
|
||||||
|
|
|
||||||
7
source/index.d.ts
vendored
7
source/index.d.ts
vendored
|
|
@ -1,7 +1,12 @@
|
||||||
// TODO: Make it this when TS suports that.
|
// TODO: Make it this when TS suports that.
|
||||||
// import {ModifierName, ForegroundColor, BackgroundColor, ColorName} from '#ansi-styles';
|
// import {ModifierName, ForegroundColor, BackgroundColor, ColorName} from '#ansi-styles';
|
||||||
// import {ColorInfo, ColorSupportLevel} from '#supports-color';
|
// import {ColorInfo, ColorSupportLevel} from '#supports-color';
|
||||||
import {ModifierName, ForegroundColorName, BackgroundColorName, ColorName} from './vendor/ansi-styles/index.js';
|
import {
|
||||||
|
ModifierName,
|
||||||
|
ForegroundColorName,
|
||||||
|
BackgroundColorName,
|
||||||
|
ColorName,
|
||||||
|
} from './vendor/ansi-styles/index.js';
|
||||||
import {ColorInfo, ColorSupportLevel} from './vendor/supports-color/index.js';
|
import {ColorInfo, ColorSupportLevel} from './vendor/supports-color/index.js';
|
||||||
|
|
||||||
export interface Options {
|
export interface Options {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,22 @@
|
||||||
import {expectType, expectAssignable, expectError, expectDeprecated} from 'tsd';
|
import {
|
||||||
|
expectType,
|
||||||
|
expectAssignable,
|
||||||
|
expectError,
|
||||||
|
expectDeprecated,
|
||||||
|
} from 'tsd';
|
||||||
import chalk, {
|
import chalk, {
|
||||||
Chalk, ChalkInstance, ColorInfo, ColorSupport, ColorSupportLevel, chalkStderr, supportsColor, supportsColorStderr,
|
Chalk,
|
||||||
ModifierName, ForegroundColorName, BackgroundColorName, ColorName,
|
ChalkInstance,
|
||||||
|
ColorInfo,
|
||||||
|
ColorSupport,
|
||||||
|
ColorSupportLevel,
|
||||||
|
chalkStderr,
|
||||||
|
supportsColor,
|
||||||
|
supportsColorStderr,
|
||||||
|
ModifierName,
|
||||||
|
ForegroundColorName,
|
||||||
|
BackgroundColorName,
|
||||||
|
ColorName,
|
||||||
Modifiers,
|
Modifiers,
|
||||||
} from './index.js';
|
} from './index.js';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue