Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erwanlt/prettyprinter
https://github.com/erwanlt/prettyprinter
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/erwanlt/prettyprinter
- Owner: ErwanLT
- License: mit
- Created: 2020-12-28T14:12:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-04T10:13:39.000Z (about 4 years ago)
- Last Synced: 2023-03-03T23:00:49.084Z (almost 2 years ago)
- Language: Java
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/5f36b815c5c74cf4969d70730778da51)](https://app.codacy.com/gh/ErwanLT/PrettyPrinter?utm_source=github.com&utm_medium=referral&utm_content=ErwanLT/PrettyPrinter&utm_campaign=Badge_Grade)
[![Build Status](https://travis-ci.org/ErwanLT/PrettyPrinter.svg?branch=main)](https://travis-ci.org/ErwanLT/PrettyPrinter)
[![codecov](https://codecov.io/gh/ErwanLT/PrettyPrinter/branch/main/graph/badge.svg?token=TL01JSTFYO)](https://codecov.io/gh/ErwanLT/PrettyPrinter)# PrettyPrinter
## Simple printer
* `print(String message)`
* `printInfo(String message)`
* `printSuccess(String message)`
* `printError(String message)`[![](img/prettyPrint.png)]()
## With decorator
* `printDecorator(String message)`
* `printInfoDecorator(String message)`
* `printSuccessDecorator(String message)`
* `printErrorDecorator(String message)`[![](img/prettyPrinter_decorator.png)]()
## Using the builder
* `builder(PrinterType type, String message, String decorator)`* PrinterType (Enum):
* STANDARD
* INFO
* SUCCESS
* ERROR
* decorator
* the string that will surcharge the standard decorator, if empty or null will be `------`
[![](img/prettyPrinter_builder.png)]()