/chloee

A simple hexidecimal and rgb color converter.

Primary LanguageJavaScriptMIT LicenseMIT

chloee

Build Status Coverage Status

A simple hexidecimal and rgb color converter.

Use Chloee in Node

Install:

npm install chloee

Then, use it like so:

const chloee = require('chloee');

chloee('c470ee');
// '196,112,238'

chloee('196,122,238');
// 'c470ee'

Use Chloee in the Browser

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'

License

MIT