1.0.0 • Published 6 years ago

chloee v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

chloee

Build Status Coverage Status

A simple hexidecimal and rgb color converter.

Installation

Node

npm install chloee

Browser

Add the following to your HTML page's <head> section.

<script src="https://cdn.rawgit.com/heyitsjhu/chloee/7e5dc7b1/dist/lib/Chloee.min.js"></script>

Usage

Node

const chloee = require('chloee');

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

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

Browser

var result = new Chloee('c470ee').convert();
console.log(result);    // '196,112,238'

var result = new Chloee('196,112,238').convert();
console.log(result);    // 'c470ee'

License

MIT