1.0.3 • Published 5 years ago
@pedroescudero/rgb v1.0.3
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.