-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.hbs
More file actions
44 lines (30 loc) · 846 Bytes
/
README.hbs
File metadata and controls
44 lines (30 loc) · 846 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Logion
<p align="center">
<img src="./logion-reel.gif" width="100%"><br>
<b>Logion allows you to output beautiful logs to a console (TTY) - from different parts of the program - use separators, indents, spinners and style your text.</b>
</p>
## Install
Install via `yarn add logion` | `npm install logion`.
## Usage
Create instance:
```js
import Logion from 'logion';
const logger = new Logion(opts);
```
Logion comes with an easy to use composable API that supports chaining:
```js
logger
.text('Hello World!')
.newline(2)
.text('Good job', 'success')
.separate()
.line('One liner')
.spinner('oh', 'Beatifull spinner');
```
## API
{{>main}}
## TODO
- Add more tests.
- Add a help message for scrolling and document it.
- Add more text style (colors) variants.
- Fix flickering and rerender screen only if needed.