@defo550/hex-to-rgb
v1.1.0
Published
Convert hex color to rgb value.
Downloads
4
Readme
Convert a hexadecimal to RGB format
Installation
Package is distributed via npm:
npm i @defo550/hex-to-rgb
Usage
const hexRgb = require('@defo550/hex-to-rgb');
hexRgb('#ffa100');
// [255, 161, 0]
hexRgb('#000');
// [0, 0, 0]