@pedroescudero/rgb

1.0.3 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @pedroescudero/rgb

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    4.53 kB

    Total Files

    6

    Last publish

    Collaborators

    • pedroescudero