npm-togglehex

1.0.5 • Public • Published

npm-togglehex

Converts hexadecimal color format to rgb.

usage

Install the npm package.

npm install npm-togglehex --save

Add this to your JavaScript code.

const hex = require('npm-togglehex');
let result = hex.toggleHex(string));

hex and result could be named as you wish and string stands for a string input.
Input could be hexadecimal color format: #FFFFFF or RGB in standart CSS notation: rgb(255,255,255).
The toggleHex function will detect the type of input and return the converted value.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

Package Sidebar

Install

npm i npm-togglehex

Weekly Downloads

1

Version

1.0.5

License

ISC

Unpacked Size

1.82 kB

Total Files

3

Last publish

Collaborators

  • kboeff