Skip to content

Sweet CLI helps you quickly convert colors representation from RGB to HEX and vice versa.

License

Notifications You must be signed in to change notification settings

ChengaDev/hexchange-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hexchange

Easily convert colors representation from hexadecimal to RGB, vice versa.

Installation

npm install -g hexchange

CLI command Usage

In order to use the CLI command, you need to call hexchange, and state the covertion you with to make, the the value to conveft. Usage example:

hexchange -a <conversion-type> -v <value-to-convert>

Available conversion types

htr - convert from hexadecimal representation to RGB representation.

rth - convert from RGB representation to hexadecimal representation.

Full examples

hexchange -a htr -v #111111
hexchange -a htr -v #111
hexchange -a rth -v rgb(17,17,17)

CLI Wizard Usage

Start by typing:

hexchange

Then, select by arrow keys the conversion type you need:

image

Type the value to convert:

image

And finally, you get the converted value as output:

image

Additional options

Version

In order to indicate which version of hexchange you use, use:

hexchange -V

In order to watch overall view of hexchange commands, use:

hexchange --help

About

Sweet CLI helps you quickly convert colors representation from RGB to HEX and vice versa.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published