UNPKG

@zero-deps/hex-2-rgb

Version:

lightweight typescript function to convert hexes of format #rrggbb to rgb(x,y,z) or rgba(x,y,z,a)

54 lines (53 loc) 1.23 kB
{ "keywords": [ "rgb", "rgba", "hex", "alpha", "color", "convert", "typescript" ], "author": "Florian Fehrenbacher", "license": "ISC", "name": "@zero-deps/hex-2-rgb", "repository": { "type": "git", "url": "https://github.com/flofehrenbacher/hex-2-rgb.git" }, "version": "2.2.1", "description": "lightweight typescript function to convert hexes of format #rrggbb to rgb(x,y,z) or rgba(x,y,z,a)", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", "scripts": { "test": "jest", "type-check": "tsc --noEmit", "prebuild": "rm -rf dist", "build": "tsup src/index.ts --format esm,cjs --dts", "size": "size-limit", "prepublishOnly": "run-s build size" }, "size-limit": [ { "limit": "500 B", "path": "dist/index.js" }, { "limit": "150 B", "path": "dist/index.mjs" } ], "devDependencies": { "@size-limit/preset-small-lib": "11.1.6", "@swc/core": "1.10.4", "@types/jest": "29.5.14", "jest": "29.7.0", "npm-run-all2": "7.0.2", "prettier": "3.4.2", "ts-jest": "29.2.5", "size-limit": "11.1.6", "tsup": "8.3.5", "typescript": "5.7.2" } }