color-2-name 1.5.1 → 1.5.2
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/package.json +84 -82
package/package.json
CHANGED
|
@@ -1,82 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "color-2-name",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"author": "Erik <erik@codekraft.it>",
|
|
5
|
-
"description": "Finds the closest color name to a given hex, rgb and hsl color (with and without alpha). It uses the Euclidean distance formula to calculate the distance between colors in the RGB color space",
|
|
6
|
-
"homepage": "https://wp-blocks.github.io/color-2-name/",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"sideEffects": false,
|
|
9
|
-
"type": "module",
|
|
10
|
-
"main": "./lib/index.cjs",
|
|
11
|
-
"module": "./lib/index.js",
|
|
12
|
-
"types": "./lib/index.d.ts",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"test
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"build-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"color
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"@
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
|
|
82
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "color-2-name",
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"author": "Erik <erik@codekraft.it>",
|
|
5
|
+
"description": "Finds the closest color name to a given hex, rgb and hsl color (with and without alpha). It uses the Euclidean distance formula to calculate the distance between colors in the RGB color space",
|
|
6
|
+
"homepage": "https://wp-blocks.github.io/color-2-name/",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./lib/index.cjs",
|
|
11
|
+
"module": "./lib/index.js",
|
|
12
|
+
"types": "./lib/index.d.ts",
|
|
13
|
+
"unpkg": "lib/browser/color-2-name.min.js",
|
|
14
|
+
"jsdelivr": "lib/browser/color-2-name.js",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": {
|
|
18
|
+
"import": "./lib/index.d.ts",
|
|
19
|
+
"require": "./lib/index.d.cts"
|
|
20
|
+
},
|
|
21
|
+
"import": "./lib/index.js",
|
|
22
|
+
"require": "./lib/index.cjs"
|
|
23
|
+
},
|
|
24
|
+
"./*": {
|
|
25
|
+
"types": "./lib/*.d.ts",
|
|
26
|
+
"import": "./lib/*.js",
|
|
27
|
+
"require": "./lib/*.cjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"gen-colorSet": "node ./lib/colorSetUtils.mjs colorSet",
|
|
32
|
+
"build": "rimraf lib && npm run build-module && npm run build-browser && npm run build-browser-min",
|
|
33
|
+
"test": "vitest",
|
|
34
|
+
"pre-publish": "npm run build && npx publint",
|
|
35
|
+
"test:coverage": "vitest --coverage",
|
|
36
|
+
"lint": "npx @biomejs/biome lint --apply src",
|
|
37
|
+
"build-module": "tsdown",
|
|
38
|
+
"build-browser": "esbuild src/index.ts --outfile=lib/browser/color-2-name.js --global-name=color2name --allow-overwrite --bundle --sourcemap",
|
|
39
|
+
"build-browser-min": "esbuild src/index.ts --outfile=lib/browser/color-2-name.min.js --global-name=color2name --allow-overwrite --bundle --minify"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"lib/",
|
|
43
|
+
"tests/*.ts",
|
|
44
|
+
"*.json",
|
|
45
|
+
"*.md",
|
|
46
|
+
".gitignore",
|
|
47
|
+
"LICENSE"
|
|
48
|
+
],
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/wp-blocks/color-2-name.git"
|
|
52
|
+
},
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "https://github.com/wp-blocks/color-2-name/issues"
|
|
55
|
+
},
|
|
56
|
+
"engines": {
|
|
57
|
+
"npm": ">=6.0.0",
|
|
58
|
+
"node": ">=14.0.0"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"color",
|
|
62
|
+
"color names",
|
|
63
|
+
"color-names",
|
|
64
|
+
"css",
|
|
65
|
+
"css colors",
|
|
66
|
+
"accessibility",
|
|
67
|
+
"a11y",
|
|
68
|
+
"hex",
|
|
69
|
+
"rgb",
|
|
70
|
+
"hsl",
|
|
71
|
+
"convert colors",
|
|
72
|
+
"color picker"
|
|
73
|
+
],
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@biomejs/biome": "2.3.8",
|
|
76
|
+
"@types/node": "^24.10.1",
|
|
77
|
+
"@vitest/coverage-v8": "^4.0.14",
|
|
78
|
+
"esbuild": "^0.27.0",
|
|
79
|
+
"rimraf": "^6.1.2",
|
|
80
|
+
"tsdown": "^0.20.3",
|
|
81
|
+
"typescript": "^5.9.3",
|
|
82
|
+
"vitest": "^4.0.14"
|
|
83
|
+
}
|
|
84
|
+
}
|