# coloured-text-common

> Time to stylise that cli ;)

Latest version **0.0.5** (published 2022-11-05) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install coloured-text-common
pnpm add coloured-text-common
yarn add coloured-text-common
bun add coloured-text-common
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2022-11-05 |
| First published | 2022-11-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Fragnar |
| Maintainers | fragnarok |
| Keywords | colouredtext, coloured, colorful, cli, clicolor, textcolor, colortext, colored-terminal, colorized, tool, stylise, cool, terminal, command-line, colored-log, logcolor |

## Links

- npm: https://www.npmjs.com/package/coloured-text-common
- Repository: https://github.com/FragnaroK/tools
- Homepage: https://github.com/FragnaroK/tools/tree/main/coloured-text
- Issues: https://github.com/FragnaroK/tools/issues
- npm.io page: https://npm.io/package/coloured-text-common

## Dependencies (1)

- [nodemon](https://npm.io/package/nodemon.md) ^2.0.20

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2022-11-05

## README

# Coloured-text ![version](https://img.shields.io/npm/v/coloured-text?color=red&label=NPM&style=flat-square)

**INDEX**

 - [Install](#install)
 - [Usage](#usage)
    - [MSG Variants](#msg-variants)

## Install 

    npm install coloured-text

    npm i coloured-text

## Usage
```js
    import ct from "coloured-text";

    ct.showTemplates(); // This will show you templates from ct.msg

    console.log(ct.msg.info("LOADING...", 11)); // Output: "[i] LOADING..."

    console.log(
        ct.colors.print("HELLO WORLD!", {
            color: [ct.colors.fgColor.black, ct.colors.bgColor.cyan], 
            decoration: [ct.colors.decoration.underline]
        })
    ) // Output: HELLO WORLD! with cyan background, and underlined black text

    console.log(`${ct.colors.fgColor.green}HELLO WORLD!${ct.colors.end}`) // Output: HELLO WORLD! with green text
```

#### MSG Variants

```js
    ct.msg.success("SomeText", 0 to 23);
```

![success](https://github.com/FragnaroK/tools/blob/main/coloured-text/images/success.jpg?raw=true)
```js
    ct.msg.error("SomeText", 0 to 23);
```
![error](https://github.com/FragnaroK/tools/blob/main/coloured-text/images/error.jpg?raw=true)
```js 
    ct.msg.info("SomeText", 0 to 23);
```
![info](https://github.com/FragnaroK/tools/blob/main/coloured-text/images/info.jpg?raw=true)

Each one has 24 different options

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