hex-to-rgb-string

convert hex string to rgb string

Usage no npm install needed!

<script type="module">
  import hexToRgbString from 'https://cdn.skypack.dev/hex-to-rgb-string';
</script>

README

Hex to RGB String Build Status

Usage

$ npm install hex-to-rgb-string

var hexToRgbString = require('hex-to-rgb-string');

console.log(hexToRgbString('#0099ff')); // rgb(0, 153, 255);

console.log(hexToRgbString('#bde', true)); // rgba(187, 221, 239, 1);