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

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

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`