Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerrproger/logion
Logion allows you to output beautiful logs to a console (TTY)
https://github.com/gerrproger/logion
Last synced: about 2 months ago
JSON representation
Logion allows you to output beautiful logs to a console (TTY)
- Host: GitHub
- URL: https://github.com/gerrproger/logion
- Owner: Gerrproger
- License: mit
- Created: 2023-03-05T17:03:52.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-16T16:53:26.000Z (4 months ago)
- Last Synced: 2024-11-13T21:17:39.909Z (about 2 months ago)
- Language: JavaScript
- Size: 661 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.hbs
- License: LICENSE
Awesome Lists containing this project
README
# Logion
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.## 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.