A simple hexidecimal and rgb color converter.
Install:
npm install chloee
Then, use it like so:
const chloee = require('chloee');
chloee('c470ee');
// '196,112,238'
chloee('196,122,238');
// 'c470ee'
Add the following to your HTML page's <head>
section.
<script src="https://d2uu82licdpgvh.cloudfront.net/chloee.min.js"></script>
You can now use Chloee via chloee()
:
var result = chloee('c470ee');
console.log(result); // '196,112,238'
var result = chloee('196,112,238');
console.log(result); // 'c470ee'