An open API service indexing awesome lists of open source software.

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

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.bold

info '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` => [~]