rgb-to-hex

0.0.0 • Public • Published

rgb-to-hex

Convert rgb value to hex

Install

$ npm install --save rgb-to-hex

Usage

var rgbToHex = require('rgb-to-hex');
 
rgbToHex('rgb(100, 40, 30)');
//=> '64281E'

API

rgbToHex(input)

input

Required Type: string

Put rgb string and get hex

License

MIT © drKraken

Package Sidebar

Install

npm i rgb-to-hex

Weekly Downloads

2,344

Version

0.0.0

License

MIT

Last publish

Collaborators

  • drkraken