@hypernym/colors 1.0.4 → 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.
package/LICENSE.txt CHANGED
@@ -1,6 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Ivo Dolenc, Hypernym Studio
3
+ Copyright (c) 2025, Ivo Dolenc <https://github.com/ivodolenc>
4
+ Copyright (c) 2025, Hypernym Studio <https://github.com/hypernym-studio>
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -29,16 +29,12 @@
29
29
  ## Usage
30
30
 
31
31
  ```ts
32
- import { bold, green, cyan } from '@hypernym/colors'
32
+ import { bold, green, cyan, ... } from '@hypernym/colors'
33
33
 
34
34
  console.log(bold(green('hypernym')), cyan('colors'))
35
35
  ```
36
36
 
37
- ## Community
38
-
39
- Feel free to ask questions or share new ideas.
40
-
41
- Use the official [discussions](https://github.com/hypernym-studio/colors/discussions) to get involved.
37
+ See a list of all available [colors](./src/index.ts).
42
38
 
43
39
  ## License
44
40
 
@@ -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
- 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
+ //#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.4",
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.mts",
17
- "import": "./dist/index.mjs"
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
18
  }
19
19
  },
20
20
  "files": [
@@ -31,13 +31,6 @@
31
31
  "log",
32
32
  "esm"
33
33
  ],
34
- "scripts": {
35
- "build": "hyperbundler",
36
- "lint": "eslint .",
37
- "lint:fix": "eslint --fix .",
38
- "format": "prettier --write .",
39
- "prepublishOnly": "pnpm build"
40
- },
41
34
  "peerDependencies": {
42
35
  "@types/node": ">=20.0.0",
43
36
  "typescript": ">=5.0.0"
@@ -51,13 +44,19 @@
51
44
  }
52
45
  },
53
46
  "devDependencies": {
54
- "@hypernym/bundler": "^0.14.3",
55
- "@hypernym/eslint-config": "^3.6.1",
56
- "@hypernym/prettier-config": "^3.2.4",
57
- "@hypernym/tsconfig": "^2.6.1",
58
- "@types/node": "^22.15.17",
59
- "eslint": "^9.26.0",
60
- "prettier": "^3.5.3",
61
- "typescript": "^5.8.3"
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
+ "prettier": "^3.6.2",
54
+ "typescript": "^5.9.3"
55
+ },
56
+ "scripts": {
57
+ "build": "hyperbundler",
58
+ "lint": "eslint .",
59
+ "lint:fix": "eslint --fix .",
60
+ "format": "prettier --write ."
62
61
  }
63
- }
62
+ }