https://github.com/dergoogler/praey
Simple and easy to understand colored console logging for Node.js
https://github.com/dergoogler/praey
Last synced: 10 months ago
JSON representation
Simple and easy to understand colored console logging for Node.js
- Host: GitHub
- URL: https://github.com/dergoogler/praey
- Owner: DerGoogler
- License: mit
- Created: 2022-08-19T14:10:31.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-19T14:12:03.000Z (almost 4 years ago)
- Last Synced: 2025-07-01T11:04:48.058Z (12 months ago)
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PRÆY
Simple and easy to understand colored console logging for Node.js
> This library is inspired by the Bun.sh console logging :)
## Install
```shell
bun add preay
```
## Documentation
### Add more colors or combine colors
```ts
import { Praey } from "praey";
const log = new Praey({
italic: "\x1b[3m",
});
log.out("This is important!");
```
### Without `new` call
```ts
import { praey } from "praey";
praey.out("I'm blue");
```
## Supported built-in colors
- `r` - This resets the color
- `bright`
- `dim`
- `underscore`
- `blink`
- `reverse`
- `hidden`
- `fg-black`
- `fg-red`
- `fg-green`
- `fg-yellow`
- `fg-blue`
- `fg-magenta`
- `fg-cyan`
- `fg-white`
- `bg-black`
- `bg-red`
- `bg-green`
- `bg-yellow`
- `bg-blue`
- `bg-magenta`
- `bg-cyan`
- `bg-white`