hex2rgb/oklch

Concepts, Prototypes & Side Projects
Node.js Bower JS/HTML/CSS Mocha Chai Travis CI

hex2oklch - A new lib with OKLCH support!

Based on my original project, hex2rgb, hex2oklch is updated to use OKLCH instead of RGB.

hex2oklch NPM

Check it out at npmjs or at Github.

Below is the original hex2rgb project, that started it all.


An npm/Bower module that converts hex color to rgb. Calculates corresponding foreground (either black or white).

hex2rgb

is a Node.js (npm) and Bower module I made that converts hex color to rgb. It also calculates the appropriate corresponding foreground (either black or white).

hex2rgb NPM


Inspiration

I currently use hex2rgb in an Angular prototype app and decided to make it a public module with plans to use it in more projects like my React Native app. I hope this module comes in handy to someone else, particularly its yiq (foreground) feature.


Testing/Coverage

I use Mocha/Chai for testing, Travis CI as well for test & deploy and Code Climate for code coverage checking.

Mocha Chai Travis
npm test

To learn more about how to actually use it, check out the full README at npmjs: npmjs.com/package/hex2rgb or at Github: github.com/glnster/hex2rgb

live stats

https://www.npmjs.com/package/hex2rgb https://github.com/glnster/hex2rgb https://travis-ci.org/glnster/hex2rgb

NPM