npm.io
1.0.3 • Published 7 years ago

@pedroescudero/rgb

Licence
MIT
Version
1.0.3
Deps
0
Size
4 kB
Vulns
0
Weekly
0

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.

Keywords