Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hex-to-rgb

scottcorgan145.1kMIT1.0.1

Convert color hex value to rgb

readme

hex-to-rgb

Convert color hex value to rgb

Install

npm install hex-to-rgb --save

Usage

var hexToRgb = require('hex-to-rgb');

console.log(hexToRgb('000000'));
console.log(hexToRgb('#ffffff'));

Run Tests

npm install
npm test