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

https://github.com/blackode/printex

Elixir module for printing debugging data types to terminal with colors and formats for easy identify
https://github.com/blackode/printex

Last synced: over 1 year ago
JSON representation

Elixir module for printing debugging data types to terminal with colors and formats for easy identify

Awesome Lists containing this project

README

          

# Printex
Printex is a Color Printer Module,helps you to print the data and strings in color format in console.

## Version Changelog
**v1.1.0** [Changelog](CHANGELOG.md)

## Use
This module separates the different console outputs with different colors and including background colors as well. It gives you the direct focus on the console by highlighting text with colors and backgrounds.

You can use in multiple ways like printing the :error message and many formats. This helps you identify message from the regular out put of the console. You can also specify the :bg_color - Background color for the text to lay on.

## Installation

[Download from Hex](https://hex.pm/docs/publish), the package can be installed
by adding `printex` to your list of dependencies in `mix.exs`:

```elixir
def deps do
[{:printex, "~> 1.1.0"}]
end
```
[Documentation](https://hexdocs.pm/printex).

## Screenshots
### print
![print](assets/images/print.png)

### prints with foreground colors
![prints](assets/images/prints.png)

### prints with background colors
![prints](assets/images/prints_bg.png)

### Printing the Warning Text
![print_warning](assets/images/print_warning.png)

### Printing the Error Text
![print_error](assets/images/print_error.png)

### Printing the Info Text
![print_info](assets/images/print_info.png)

### Printing the map
![print_info](assets/images/print_map.png)

### Printing the map
![print_info](assets/images/print_list.png)

### Smart printing

![color_print](assets/images/x_on_y.png)