@clef/hex-to-rgb

A quick converter from hex to RGB

Usage no npm install needed!

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

README

@clef/hex-to-rgb

Build Status Downloads Downloads npm version dependencies dev dependencies License

A quick converter from hex to RGB

Getting Started

Install it via npm:

npm install @clef/hex-to-rgb

And include in your project:

import hexToRGB from '@clef/hex-to-rgb';

Usage

hexToRGB(hexString)

Converts a hex color string to a RGB object

Development

To start development, run:

git clone git@github.com:clef/hex-to-rgb.git hex-to-rgb
cd hex-to-rgb
npm install
npm run test

License

MIT