https://github.com/noclaps/color
A CLI tool to quickly convert between color formats.
https://github.com/noclaps/color
bun cli color typescript
Last synced: about 2 months ago
JSON representation
A CLI tool to quickly convert between color formats.
- Host: GitHub
- URL: https://github.com/noclaps/color
- Owner: noClaps
- Created: 2025-03-21T14:06:35.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-21T14:09:08.000Z (about 2 months ago)
- Last Synced: 2025-03-22T23:11:30.526Z (about 2 months ago)
- Topics: bun, cli, color, typescript
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# color
This is a CLI tool to quickly convert between color formats. It's based on the [Color.js](https://colorjs.io) library and supports practically every format supported by CSS.
## Installation
You can install it using Homebrew on macOS/Linux:
```sh
brew install noclaps/tap/color
```or you can build it from source:
```sh
git clone https://github.com/noClaps/color.git && cd color
bun install
bun run build
```## Usage
```
USAGE: color [--list-formats]ARGUMENTS:
The color that you would like to convert.
The format that you would like to convert to.OPTIONS:
--list-formats, -f List all the available formats and exit.
--help, -h Display this help message and exit.
```You can use the tool simply by running:
```sh
color "#ff732e" oklch # oklch(71.475% 0.18776 43.447)
```The supported color formats can be listed using the `--list-formats` or `-f` flag:
```sh
color --list-formats
color -f
```You can view the help by using `--help` or `-h`:
```sh
color --help
color -h
```