Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidchambers/hex2xterm
:rainbow: Convert hexadecimal colour codes to xterm colour codes
https://github.com/davidchambers/hex2xterm
Last synced: 30 days ago
JSON representation
:rainbow: Convert hexadecimal colour codes to xterm colour codes
- Host: GitHub
- URL: https://github.com/davidchambers/hex2xterm
- Owner: davidchambers
- License: wtfpl
- Created: 2015-08-21T02:19:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-12T11:41:47.000Z (over 8 years ago)
- Last Synced: 2024-10-13T11:12:27.119Z (2 months ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hex2xterm
Command-line utility for converting hexadecimal colour codes to xterm colour
codes.### Installation
```console
$ npm install hex2xterm
```### Usage
Provide any number of hexadecimal colour codes as command-line arguments. For
each, the nearest xterm colour code is written to stdout on its own line.```console
$ node_modules/.bin/hex2xterm '#abc123' def456
106
191
```