@zero-deps/hex-2-rgb
Version:
lightweight typed function to convert hexes of format #rrggbb to rgb(x,y,z) or rgba(x,y,z,a) without runtime dependencies
64 lines (63 loc) • 1.38 kB
JSON
{
"name": "@zero-deps/hex-2-rgb",
"version": "3.0.0",
"description": "lightweight typed function to convert hexes of format #rrggbb to rgb(x,y,z) or rgba(x,y,z,a) without runtime dependencies",
"keywords": [
"rgb",
"rgba",
"hex",
"alpha",
"color",
"convert",
"typescript"
],
"repository": {
"type": "git",
"url": "https://github.com/flofehrenbacher/hex-2-rgb.git"
},
"license": "ISC",
"author": "Florian Fehrenbacher",
"type": "module",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./package.json": "./package.json"
},
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.cts",
"files": [
"dist"
],
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsdown",
"prepublishOnly": "npm run build && npm run size",
"size": "size-limit",
"test": "node --test",
"type-check": "tsc --noEmit"
},
"devDependencies": {
"@size-limit/preset-small-lib": "11.2.0",
"@types/node": "24.9.1",
"prettier": "3.6.2",
"size-limit": "11.2.0",
"tsdown": "0.15.9",
"typescript": "5.9.3"
},
"volta": {
"node": "24.10.0"
},
"size-limit": [
{
"limit": "170 B",
"path": "dist/index.cjs"
},
{
"limit": "120 B",
"path": "dist/index.js"
}
]
}