# consolestylerc

> console rc style

Latest version **0.0.5** (published 2023-12-12) · GPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install consolestylerc
pnpm add consolestylerc
yarn add consolestylerc
bun add consolestylerc
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2023-12-12 |
| First published | 2021-02-04 |
| Weekly downloads | 0 |
| License | GPL-3.0-or-later |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Soldy |
| Maintainers | soldy |

## Links

- npm: https://www.npmjs.com/package/consolestylerc
- Repository: https://github.com/Soldy/consolestylerc
- Homepage: https://github.com/Soldy/consolestylerc#readme
- Issues: https://github.com/Soldy/consolestylerc/issues
- npm.io page: https://npm.io/package/consolestylerc

## Recent versions

- 0.0.5 (latest) — 2023-12-12
- 0.0.4-r1 — 2021-02-09
- 0.0.4 — 2021-02-07
- 0.0.2-rc2 — 2021-02-07
- 0.0.2-rc1 — 2021-02-06
- 0.0.2 — 2021-02-05
- 0.0.1 — 2021-02-04

## README

## console style rc 


Simple cli styler


## init

```javascript
const styler = new (require('consolestylerc').base();

```

## simple foreground color change

```javascript
styler.style(
    'test red text',
    {
         'color':'red'
    }
);
```

## simple foreground color change

```javascript
styler.style(
    'test text with blue background',
    {
         'background':'blue'
    }
);
```

## simple effect

```javascript
styler.style(
    'blinking  test text',
    {
         'effect':'blink'
    }
);
```


## simple multiple style 

```javascript
styler.style(
    'styled test text',
    {
         'color':'cyan',
         'background':'cyan',
         'effect':[
            'blink',
            'underline'
         ]
    }
);
```

## supported styles

| style         | Types              |
|---------------|--------------------|
| bold          | effect             |
| dim           | effect             |
| italic        | effect             |
| underline     | effect             |
| blink         | effect             |
| inverse       | effect             |
| hidden        | effect             |
| strikethrough | effect             |
| black         | color,background   |
| red           | color,background   |
| green         | color,background   |
| yellow        | color,background   |
| blue          | color,background   |
| cyan          | color,background   |
| white         | color,background   |
| grey          | color              |

---
_Source: https://npm.io/package/consolestylerc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
