https://github.com/hugolgst/hue-rb
🖥 Hue adaptation to Ruby
https://github.com/hugolgst/hue-rb
hue ruby terminal-colors
Last synced: about 2 months ago
JSON representation
🖥 Hue adaptation to Ruby
- Host: GitHub
- URL: https://github.com/hugolgst/hue-rb
- Owner: hugolgst
- Created: 2018-03-21T16:54:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-22T13:47:50.000Z (about 7 years ago)
- Last Synced: 2025-03-06T02:38:14.107Z (2 months ago)
- Topics: hue, ruby, terminal-colors
- Language: Ruby
- Homepage: https://github.com/UltimateHackers/hue
- Size: 1.95 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hue-rb
See [Hue](https://github.com/UltimateHackers/hue) for explanations
## Usage
First of all, installe Hue-rb :
```
$ gem install hue-rb
```Then require it to your Ruby file :
```ruby
require 'hue'
```You can now use colors, styles and logs :
```ruby
puts 'Hey'.red.boldinfo 'wow' # => logs '[!] Wow'
```List of available colors, styles and logs :
### Colors
* `white`
* `black`
* `red`
* `green`
* `yellow`
* `blue`
* `magenta`
* `cyan`
* `light_gray`
* `dark_dray`
* `light_red`
* `light_green`
* `light_yellow`
* `light_blue`
* `light_magenta`
* `light_cyan`### Styles
* `bold`
* `italic`
* `underlined`
* `blink`
* `inverted`
* `hidden`
* `strike`### Logs
* `info` => [!]
* `que` => [?]
* `bad` => [-]
* `good` => [+]
* `run` => [~]