@hypernym/colors 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/index.d.ts
|
|
1
2
|
type Color = (v: string | number) => string;
|
|
2
3
|
declare const reset: Color;
|
|
3
4
|
declare const bold: Color;
|
|
@@ -25,6 +26,5 @@ declare const white: Color;
|
|
|
25
26
|
declare const bgWhite: Color;
|
|
26
27
|
declare const gray: Color;
|
|
27
28
|
declare const bgGray: Color;
|
|
28
|
-
|
|
29
|
-
export { bgBlack, bgBlue, bgCyan, bgGray, bgGreen, bgMagenta, bgRed, bgWhite, bgYellow, black, blue, bold, crossout, cyan, dim, gray, green, hidden, inverse, italic, magenta, red, reset, underline, white, yellow };
|
|
30
|
-
export type { Color };
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Color, bgBlack, bgBlue, bgCyan, bgGray, bgGreen, bgMagenta, bgRed, bgWhite, bgYellow, black, blue, bold, crossout, cyan, dim, gray, green, hidden, inverse, italic, magenta, red, reset, underline, white, yellow };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
1
2
|
const _ = `\x1B[`;
|
|
2
3
|
const reset = (v) => `${_}0m${v}${_}0m`;
|
|
3
4
|
const bold = (v) => `${_}1m${v}${_}22m`;
|
|
@@ -26,4 +27,5 @@ const bgWhite = (v) => `${_}47m${v}${_}49m`;
|
|
|
26
27
|
const gray = (v) => `${_}90m${v}${_}39m`;
|
|
27
28
|
const bgGray = (v) => `${_}100m${v}${_}49m`;
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
//#endregion
|
|
31
|
+
export { bgBlack, bgBlue, bgCyan, bgGray, bgGreen, bgMagenta, bgRed, bgWhite, bgYellow, black, blue, bold, crossout, cyan, dim, gray, green, hidden, inverse, italic, magenta, red, reset, underline, white, yellow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hypernym/colors",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"author": "Hypernym Studio",
|
|
5
5
|
"description": "Ultra lightweight color utilities for console.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
-
"types": "./dist/index.d.
|
|
17
|
-
"import": "./dist/index.
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@hypernym/bundler": "^0.
|
|
48
|
-
"@hypernym/eslint-config": "^3.6.
|
|
49
|
-
"@hypernym/prettier-config": "^3.2.
|
|
50
|
-
"@hypernym/tsconfig": "^2.6.
|
|
51
|
-
"@types/node": "^
|
|
52
|
-
"eslint": "^9.
|
|
47
|
+
"@hypernym/bundler": "^0.30.4",
|
|
48
|
+
"@hypernym/eslint-config": "^3.6.5",
|
|
49
|
+
"@hypernym/prettier-config": "^3.2.9",
|
|
50
|
+
"@hypernym/tsconfig": "^2.6.3",
|
|
51
|
+
"@types/node": "^24.8.1",
|
|
52
|
+
"eslint": "^9.37.0",
|
|
53
53
|
"prettier": "^3.6.2",
|
|
54
|
-
"typescript": "^5.9.
|
|
54
|
+
"typescript": "^5.9.3"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "hyperbundler",
|