color-2-name
Version:
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
18 lines (17 loc) • 415 B
JSON
{
"compilerOptions": {
"module": "ES2022",
"target": "ES2022",
"moduleResolution": "node",
"strict": true,
"allowSyntheticDefaultImports": true,
"skipLibCheck": true,
"noImplicitAny": true,
"strictNullChecks": true,
"forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"rootDir": "src"
},
"include": ["src", "test"],
"exclude": ["node_modules", "coverage", "dist", "docs"]
}