https://github.com/chengadev/hexchange-cli
Sweet CLI helps you quickly convert colors representation from RGB to HEX and vice versa.
https://github.com/chengadev/hexchange-cli
cli conversion css
Last synced: about 1 month ago
JSON representation
Sweet CLI helps you quickly convert colors representation from RGB to HEX and vice versa.
- Host: GitHub
- URL: https://github.com/chengadev/hexchange-cli
- Owner: ChengaDev
- License: mit
- Created: 2021-09-18T20:23:38.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-07T11:23:08.000Z (over 3 years ago)
- Last Synced: 2025-02-20T15:42:36.234Z (over 1 year ago)
- Topics: cli, conversion, css
- Language: JavaScript
- Homepage:
- Size: 425 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexchange
Easily convert colors representation from hexadecimal to RGB, vice versa.
## Installation
```bash
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 -v
```
### 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:

Type the value to convert:

And finally, you get the converted value as output:

## 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
```