@pedroescudero/rgb
v1.0.3
Published
Transforms from RGB decimal numbers to its hexadecimal value
Downloads
9
Readme
RGB
Packed with a transformer from RGB to Hexadecimal.
Installation
npm install @pedroescudero/rgb
Usage
The main function requires 3 decimal numbers. The response will be a string representing the hexadecimal value .
let rgb = require('@pedroescudero/rgb');
let rgbValue = rgb(0, 0, 0); # The result is 000000
Tests
npm test
It is using mocha as a testing framework and Chai for the assertions.
For manual testing and training you can employ Runkit.